From a33a0047a43dc716030f2ff88977b822387c8f2d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 8 Jan 2008 14:22:59 +0000 Subject: [PATCH] Fixed warning --- examples/osgdepthpeeling/Utility.cpp | 2 +- examples/osgdepthpeeling/Utility.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgdepthpeeling/Utility.cpp b/examples/osgdepthpeeling/Utility.cpp index c84e7d88f..57baf8a9b 100644 --- a/examples/osgdepthpeeling/Utility.cpp +++ b/examples/osgdepthpeeling/Utility.cpp @@ -14,7 +14,7 @@ #include #include -bool Utility::readFile(char* fName, std::string& s) +bool Utility::readFile(const char* fName, std::string& s) { std::string foundFile = osgDB::findDataFile(fName); if (foundFile.empty()) return false; diff --git a/examples/osgdepthpeeling/Utility.h b/examples/osgdepthpeeling/Utility.h index e55404ebb..35dd9b788 100644 --- a/examples/osgdepthpeeling/Utility.h +++ b/examples/osgdepthpeeling/Utility.h @@ -19,7 +19,7 @@ namespace Utility /*! Reads a file and returns a string */ -bool readFile(char* fName, std::string& s); +bool readFile(const char* fName, std::string& s); /*! Converts a number to a string