Fixed warning

This commit is contained in:
Robert Osfield
2008-01-08 14:22:59 +00:00
parent c37e5eaf18
commit a33a0047a4
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
#include <osg/Geode>
#include <osgDB/FileUtils>
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;

View File

@@ -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