@@ -101,7 +101,7 @@ subclasses for each possible argument type
101101class ofxOscArgInt32 : public ofxOscArg
102102{
103103public:
104- ofxOscArgInt32 ( std::int32_t _value ) { value = _value; };
104+ explicit ofxOscArgInt32 ( std::int32_t _value ) { value = _value; };
105105 ~ofxOscArgInt32 () {};
106106
107107 // / return the type of this argument
@@ -120,14 +120,14 @@ class ofxOscArgInt32 : public ofxOscArg
120120class ofxOscArgInt : public ofxOscArgInt32
121121{
122122public:
123- ofxOscArgInt ( std::int32_t _value ) : ofxOscArgInt32(_value) {};
123+ explicit ofxOscArgInt ( std::int32_t _value ) : ofxOscArgInt32(_value) {};
124124 ~ofxOscArgInt (){};
125125};
126126
127127class ofxOscArgInt64 : public ofxOscArg
128128{
129129public:
130- ofxOscArgInt64 ( std::int64_t _value ) { value = _value; };
130+ explicit ofxOscArgInt64 ( std::int64_t _value ) { value = _value; };
131131 ~ofxOscArgInt64 () {};
132132
133133 // / return the type of this argument
@@ -146,7 +146,7 @@ class ofxOscArgInt64 : public ofxOscArg
146146class ofxOscArgFloat : public ofxOscArg
147147{
148148public:
149- ofxOscArgFloat ( float _value ) { value = _value; };
149+ explicit ofxOscArgFloat ( float _value ) { value = _value; };
150150 ~ofxOscArgFloat () {};
151151
152152 // / return the type of this argument
@@ -165,7 +165,7 @@ class ofxOscArgFloat : public ofxOscArg
165165class ofxOscArgDouble : public ofxOscArg
166166{
167167public:
168- ofxOscArgDouble ( double _value ) { value = _value; };
168+ explicit ofxOscArgDouble ( double _value ) { value = _value; };
169169 ~ofxOscArgDouble () {};
170170
171171 // / return the type of this argument
@@ -184,7 +184,7 @@ class ofxOscArgDouble : public ofxOscArg
184184class ofxOscArgString : public ofxOscArg
185185{
186186public:
187- ofxOscArgString ( const std::string &_value ) { value = _value; };
187+ explicit ofxOscArgString ( const std::string &_value ) { value = _value; };
188188 ~ofxOscArgString () {};
189189
190190 // / return the type of this argument
@@ -204,7 +204,7 @@ class ofxOscArgString : public ofxOscArg
204204class ofxOscArgSymbol : public ofxOscArgString
205205{
206206public:
207- ofxOscArgSymbol ( const std::string &_value ) : ofxOscArgString(_value){};
207+ explicit ofxOscArgSymbol ( const std::string &_value ) : ofxOscArgString(_value){};
208208 ~ofxOscArgSymbol () {};
209209
210210 // / return the type of this argument
@@ -215,7 +215,7 @@ class ofxOscArgSymbol : public ofxOscArgString
215215class ofxOscArgChar : public ofxOscArg
216216{
217217public:
218- ofxOscArgChar ( char _value ) { value = _value; };
218+ explicit ofxOscArgChar ( char _value ) { value = _value; };
219219 ~ofxOscArgChar () {};
220220
221221 // / return the type of this argument
@@ -234,7 +234,7 @@ class ofxOscArgChar : public ofxOscArg
234234class ofxOscArgMidiMessage : public ofxOscArgInt32
235235{
236236public:
237- ofxOscArgMidiMessage ( std::int32_t _value ) : ofxOscArgInt32(_value) {};
237+ explicit ofxOscArgMidiMessage ( std::int32_t _value ) : ofxOscArgInt32(_value) {};
238238 ~ofxOscArgMidiMessage () {};
239239
240240 // / return the type of this argument
@@ -245,7 +245,7 @@ class ofxOscArgMidiMessage : public ofxOscArgInt32
245245class ofxOscArgBool : public ofxOscArg
246246{
247247public:
248- ofxOscArgBool ( bool _value ) { value = _value; };
248+ explicit ofxOscArgBool ( bool _value ) { value = _value; };
249249 ~ofxOscArgBool () {};
250250
251251 // / return the type of this argument
@@ -285,7 +285,7 @@ class ofxOscArgTrigger : public ofxOscArgBool
285285class ofxOscArgTimetag : public ofxOscArgInt64
286286{
287287public:
288- ofxOscArgTimetag ( std::int64_t _value ) : ofxOscArgInt64(_value) {};
288+ explicit ofxOscArgTimetag ( std::int64_t _value ) : ofxOscArgInt64(_value) {};
289289 ~ofxOscArgTimetag () {};
290290
291291 // / return the type of this argument
@@ -296,10 +296,10 @@ class ofxOscArgTimetag : public ofxOscArgInt64
296296class ofxOscArgBlob : public ofxOscArg
297297{
298298public:
299- ofxOscArgBlob ( const ofBuffer &_value ){
300- value = _value;
301- }
302- ~ofxOscArgBlob (){};
299+ explicit ofxOscArgBlob ( const ofBuffer &_value ){
300+ value = _value;
301+ }
302+ ~ofxOscArgBlob (){};
303303
304304 // / return the type of this argument
305305 ofxOscArgType getType () { return OFXOSC_TYPE_BLOB; };
@@ -317,7 +317,7 @@ class ofxOscArgBlob : public ofxOscArg
317317class ofxOscArgRgbaColor : public ofxOscArg
318318{
319319public:
320- ofxOscArgRgbaColor ( std::int32_t _value ) { value = _value; };
320+ explicit ofxOscArgRgbaColor ( std::int32_t _value ) { value = _value; };
321321 ~ofxOscArgRgbaColor () {};
322322
323323 // / return the type of this argument
0 commit comments