mark constructors explicit
This commit is contained in:
4
external/resinsight/LibCore/cvfColor3.h
vendored
4
external/resinsight/LibCore/cvfColor3.h
vendored
@@ -112,7 +112,7 @@ public:
|
||||
Color3f();
|
||||
Color3f(float r, float g, float b);
|
||||
Color3f(const Color3f& other);
|
||||
Color3f(ColorIdent colorIdent);
|
||||
explicit Color3f(ColorIdent colorIdent);
|
||||
explicit Color3f(const Color3ub& other);
|
||||
|
||||
Color3f& operator=(const Color3f& rhs);
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
Color3ub();
|
||||
Color3ub(ubyte r, ubyte g, ubyte b);
|
||||
Color3ub(const Color3ub& other);
|
||||
Color3ub(ColorIdent colorIdent);
|
||||
explicit Color3ub(ColorIdent colorIdent);
|
||||
explicit Color3ub(const Color3f& other);
|
||||
|
||||
Color3ub& operator=(const Color3ub& rhs);
|
||||
|
||||
2
external/resinsight/LibCore/cvfDebugTimer.h
vendored
2
external/resinsight/LibCore/cvfDebugTimer.h
vendored
@@ -60,7 +60,7 @@ public:
|
||||
};
|
||||
|
||||
public:
|
||||
DebugTimer(const char* prefix, OperationMode operationMode = NORMAL);
|
||||
explicit DebugTimer(const char* prefix, OperationMode operationMode = NORMAL);
|
||||
~DebugTimer();
|
||||
|
||||
void restart(const char* msg = NULL);
|
||||
|
||||
2
external/resinsight/LibCore/cvfFlags.h
vendored
2
external/resinsight/LibCore/cvfFlags.h
vendored
@@ -52,7 +52,7 @@ class Flags
|
||||
public:
|
||||
inline Flags();
|
||||
inline Flags(const Flags& other);
|
||||
inline Flags(FlagEnum flag);
|
||||
explicit inline Flags(FlagEnum flag);
|
||||
|
||||
inline Flags& operator=(const Flags& rhs);
|
||||
inline Flags& operator=(FlagEnum flag);
|
||||
|
||||
4
external/resinsight/LibCore/cvfObject.h
vendored
4
external/resinsight/LibCore/cvfObject.h
vendored
@@ -99,7 +99,7 @@ class ref
|
||||
public:
|
||||
ref(T* object = NULL);
|
||||
ref(const ref& other);
|
||||
template<typename T2> ref(const ref<T2>& other);
|
||||
template<typename T2> explicit ref(const ref<T2>& other);
|
||||
~ref();
|
||||
|
||||
ref& operator=(T* rhs);
|
||||
@@ -150,7 +150,7 @@ class cref
|
||||
public:
|
||||
cref(const T* object = NULL);
|
||||
cref(const cref& other);
|
||||
template<typename T2> cref(const cref<T2>& other);
|
||||
template<typename T2> explicit cref(const cref<T2>& other);
|
||||
~cref();
|
||||
|
||||
cref& operator=(const T* rhs);
|
||||
|
||||
2
external/resinsight/cafPdmCore/cafSignal.h
vendored
2
external/resinsight/cafPdmCore/cafSignal.h
vendored
@@ -108,7 +108,7 @@ public:
|
||||
using MemberCallbackAndActiveFlag = std::pair<MemberCallback, bool>;
|
||||
|
||||
public:
|
||||
Signal( const SignalEmitter* emitter )
|
||||
explicit Signal( const SignalEmitter* emitter )
|
||||
: m_emitter( emitter )
|
||||
{
|
||||
m_emitter->addEmittedSignal( this );
|
||||
|
||||
Reference in New Issue
Block a user