App: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-13 13:15:39 +10:00
committed by wwmayer
parent 550908e93b
commit d2babf0eb5
36 changed files with 124 additions and 109 deletions

View File

@@ -74,11 +74,11 @@ enum ObjectStatus {
class AppExport DocumentObjectExecReturn
{
public:
DocumentObjectExecReturn(const std::string& sWhy, DocumentObject* WhichObject=nullptr)
explicit DocumentObjectExecReturn(const std::string& sWhy, DocumentObject* WhichObject=nullptr)
: Why(sWhy), Which(WhichObject)
{
}
DocumentObjectExecReturn(const char* sWhy, DocumentObject* WhichObject=nullptr)
explicit DocumentObjectExecReturn(const char* sWhy, DocumentObject* WhichObject=nullptr)
: Which(WhichObject)
{
if (sWhy)