diff --git a/src/osgPlugins/cfg/ReaderWriterCFG.cpp b/src/osgPlugins/cfg/ReaderWriterCFG.cpp index 52602b281..5d465c3bb 100644 --- a/src/osgPlugins/cfg/ReaderWriterCFG.cpp +++ b/src/osgPlugins/cfg/ReaderWriterCFG.cpp @@ -266,7 +266,7 @@ public: supportsExtension("cfg","Producer camera configuration file"); } - virtual const char* className() { return "Producer cfg object reader"; } + virtual const char* className() const { return "Producer cfg object reader"; } virtual ReadResult readObject(const std::string& fileName, const Options* options = NULL) const