@@ -143,7 +143,7 @@ namespace sio
143
143
return ptr (new bool_message (v));
144
144
}
145
145
146
- bool get_bool () const
146
+ bool get_bool () const override
147
147
{
148
148
return _v;
149
149
}
@@ -164,14 +164,14 @@ namespace sio
164
164
return ptr (new int_message (v));
165
165
}
166
166
167
- int64_t get_int () const
167
+ int64_t get_int () const override
168
168
{
169
169
return _v;
170
170
}
171
171
172
- double get_double () const // add double accessor for integer.
172
+ double get_double () const override
173
173
{
174
- return static_cast <double >(_v);
174
+ return static_cast <double >(_v);// add double accessor for integer.
175
175
}
176
176
};
177
177
@@ -189,7 +189,7 @@ namespace sio
189
189
return ptr (new double_message (v));
190
190
}
191
191
192
- double get_double () const
192
+ double get_double () const override
193
193
{
194
194
return _v;
195
195
}
@@ -218,7 +218,7 @@ namespace sio
218
218
return ptr (new string_message (std::move (v)));
219
219
}
220
220
221
- std::string const & get_string () const
221
+ std::string const & get_string () const override
222
222
{
223
223
return _v;
224
224
}
@@ -237,7 +237,7 @@ namespace sio
237
237
return ptr (new binary_message (v));
238
238
}
239
239
240
- std::shared_ptr<const std::string> const & get_binary () const
240
+ std::shared_ptr<const std::string> const & get_binary () const override
241
241
{
242
242
return _v;
243
243
}
@@ -256,10 +256,10 @@ namespace sio
256
256
return ptr (new array_message ());
257
257
}
258
258
259
- void push (message::ptr const & message )
259
+ void push (message::ptr const & msg )
260
260
{
261
- if (message )
262
- _v.push_back (message );
261
+ if (msg )
262
+ _v.push_back (msg );
263
263
}
264
264
265
265
void push (const std::string& text)
@@ -284,9 +284,9 @@ namespace sio
284
284
_v.push_back (binary_message::create (binary));
285
285
}
286
286
287
- void insert (size_t pos,message::ptr const & message )
287
+ void insert (size_t pos,message::ptr const & msg )
288
288
{
289
- _v.insert (_v.begin ()+pos, message );
289
+ _v.insert (_v.begin ()+pos, msg );
290
290
}
291
291
292
292
void insert (size_t pos,const std::string& text)
@@ -326,12 +326,12 @@ namespace sio
326
326
return _v[i];
327
327
}
328
328
329
- std::vector<ptr>& get_vector ()
329
+ std::vector<ptr>& get_vector () override
330
330
{
331
331
return _v;
332
332
}
333
333
334
- const std::vector<ptr>& get_vector () const
334
+ const std::vector<ptr>& get_vector () const override
335
335
{
336
336
return _v;
337
337
}
@@ -349,9 +349,9 @@ namespace sio
349
349
return ptr (new object_message ());
350
350
}
351
351
352
- void insert (const std::string & key,message::ptr const & message )
352
+ void insert (const std::string & key,message::ptr const & msg )
353
353
{
354
- _v[key] = message ;
354
+ _v[key] = msg ;
355
355
}
356
356
357
357
void insert (const std::string & key,const std::string& text)
@@ -400,12 +400,12 @@ namespace sio
400
400
return _v.find (key) != _v.end ();
401
401
}
402
402
403
- std::map<std::string,message::ptr>& get_map ()
403
+ std::map<std::string,message::ptr>& get_map () override
404
404
{
405
405
return _v;
406
406
}
407
407
408
- const std::map<std::string,message::ptr>& get_map () const
408
+ const std::map<std::string,message::ptr>& get_map () const override
409
409
{
410
410
return _v;
411
411
}
@@ -447,11 +447,10 @@ namespace sio
447
447
448
448
}
449
449
450
- list (message::ptr const & message )
450
+ list (message::ptr const & msg )
451
451
{
452
- if (message)
453
- m_vector.push_back (message);
454
-
452
+ if (msg)
453
+ m_vector.push_back (msg);
455
454
}
456
455
457
456
list (const std::string& text)
@@ -476,10 +475,10 @@ namespace sio
476
475
m_vector.push_back (binary_message::create (binary));
477
476
}
478
477
479
- void push (message::ptr const & message )
478
+ void push (message::ptr const & msg )
480
479
{
481
- if (message )
482
- m_vector.push_back (message );
480
+ if (msg )
481
+ m_vector.push_back (msg );
483
482
}
484
483
485
484
void push (const std::string& text)
@@ -504,9 +503,9 @@ namespace sio
504
503
m_vector.push_back (binary_message::create (binary));
505
504
}
506
505
507
- void insert (size_t pos,message::ptr const & message )
506
+ void insert (size_t pos,message::ptr const & msg )
508
507
{
509
- m_vector.insert (m_vector.begin ()+pos, message );
508
+ m_vector.insert (m_vector.begin ()+pos, msg );
510
509
}
511
510
512
511
void insert (size_t pos,const std::string& text)
0 commit comments