From 207cb1436d8b4047507f326b6a1b12d236f962b6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Jun 2016 16:25:40 +0100 Subject: [PATCH] Fixed override method inconsistency --- src/osgPlugins/txp/trpage_io.h | 2 +- src/osgPlugins/txp/trpage_writebuf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/txp/trpage_io.h b/src/osgPlugins/txp/trpage_io.h index 469614c07..2f123645d 100644 --- a/src/osgPlugins/txp/trpage_io.h +++ b/src/osgPlugins/txp/trpage_io.h @@ -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 diff --git a/src/osgPlugins/txp/trpage_writebuf.cpp b/src/osgPlugins/txp/trpage_writebuf.cpp index d6e739bee..0c8248336 100644 --- a/src/osgPlugins/txp/trpage_writebuf.cpp +++ b/src/osgPlugins/txp/trpage_writebuf.cpp @@ -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()); }