Commit 0e42850b authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

mark ctors as "explicit"

parent 07cb9d41
......@@ -249,7 +249,7 @@ void GemBase :: obj_setupCallback(t_class *classPtr)
}
obj->gem_amRendering=(!state);
}
_CallbackClass_gemContext (struct _class*c) {
explicit _CallbackClass_gemContext (struct _class*c) {
class_addmethod(c, reinterpret_cast<t_method>(callback), gensym("__gem_context"), A_FLOAT, A_NULL);
}
};
......
......@@ -41,7 +41,7 @@ class GEM_EXTERN GemShape : public GemBase
//////////
// Constructor
// [in] size - A size of 0. means to just use the default (ie, 1.)
GemShape(t_floatarg size);
explicit GemShape(t_floatarg size);
GemShape();
protected:
......
......@@ -37,12 +37,14 @@ namespace {
class GemWindow::PIMPL {
public:
PIMPL(GemWindow*gc) : parent(gc),
mycontext(0),
infoOut(0), rejectOut(0),
dispatchClock(0),
dispatchTime(10.),
qClock(0)
explicit PIMPL(GemWindow*gc)
: parent(gc)
, mycontext(0)
, infoOut(0)
, rejectOut(0)
, dispatchClock(0)
, dispatchTime(10.)
, qClock(0)
{
qClock=clock_new(this, reinterpret_cast<t_method>(qCallBack));
dispatchClock=clock_new(this, reinterpret_cast<t_method>(dispatchCallBack));
......@@ -437,7 +439,7 @@ void GemWindow :: obj_setupCallback(t_class *classPtr)
GemWindow*gw=GetMyClass(data);
gw->anyMess(s, argc, argv);
}
_CB_any (struct _class*c) {
explicit _CB_any (struct _class*c) {
class_addanything(c, reinterpret_cast<t_method>(_CB_any::callback));
}
};
......
......@@ -36,9 +36,9 @@ class GEM_EXTERN GemCache
//////////
// Constructor
GemCache(gemhead *parent);
explicit GemCache(gemhead *parent);
GemCache(const GemCache&);
explicit GemCache(const GemCache&);
//////////
// Destructor
......
......@@ -56,7 +56,7 @@ template<class ContextDataType = int>
/* coverity[uninit_member] we track the un-initialization ourselves */
ContextData(void) : m_haveDefaultValue(false) {;}
ContextData(ContextDataType v) : m_haveDefaultValue(true), m_defaultValue(v) {;}
explicit ContextData(ContextDataType v) : m_haveDefaultValue(true), m_defaultValue(v) {;}
virtual ~ContextData() {
m_ContextDataVector.clear();
......
......@@ -40,8 +40,8 @@ class GEM_EXTERN GemException
{
public:
GemException(void);
GemException(const char*error);
GemException(const std::string&error);
explicit GemException(const char*error);
explicit GemException(const std::string&error);
virtual ~GemException(void);
virtual const char *what(void) const;
......
......@@ -21,7 +21,7 @@
namespace gem {
class GEM_EXTERN GLStack {
public:
GLStack(bool haveValidContext=false);
explicit GLStack(bool haveValidContext=false);
virtual ~GLStack(void);
enum GemStackId { MODELVIEW, COLOR, TEXTURE, PROJECTION };
......
......@@ -39,7 +39,7 @@ namespace gem { namespace image {
void*userdata;
imageStruct*img;
gem::Properties props;
OutData(const InData&in) :
explicit OutData(const InData&in) :
cb(in.cb),
userdata(in.userdata),
img(NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment