Fixed override method inconsistency

This commit is contained in:
Robert Osfield
2016-06-27 16:25:40 +01:00
parent a5fde3a369
commit 207cb1436d
2 changed files with 2 additions and 2 deletions

View File

@@ -395,7 +395,7 @@ public:
*/
virtual void Add(const char *);
// Same as const char * version
virtual void Add(std::string &);
virtual void Add(const std::string &);
// Add a 32 bit float to the buffer
virtual void Add(float32);
// Add a 64 bit float to the buffer

View File

@@ -149,7 +149,7 @@ void trpgMemWriteBuffer::Add(const char *val)
}
// Add(std::string)
void trpgMemWriteBuffer::Add(std::string &val)
void trpgMemWriteBuffer::Add(const std::string &val)
{
Add(val.c_str());
}