From 8a4db98e2b5a3cc16a352b3ff0cd9f1ae5fff888 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 26 Aug 2007 09:59:39 +0000 Subject: [PATCH] Change char* to const char* to fix warnings --- src/osg/ApplicationUsage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/ApplicationUsage.cpp b/src/osg/ApplicationUsage.cpp index 8ad30e408..a36982ca4 100644 --- a/src/osg/ApplicationUsage.cpp +++ b/src/osg/ApplicationUsage.cpp @@ -258,7 +258,7 @@ void ApplicationUsage::writeEnvironmentSettings(std::ostream& output) std::string::size_type len = citr->first.find_first_of("\n\r\t "); if (len == std::string::npos) len = citr->first.size(); line.replace(optionPos,len,citr->first.substr(0,len)); - char *cp = getenv(citr->first.substr(0, len).c_str()); + const char *cp = getenv(citr->first.substr(0, len).c_str()); if (!cp) cp = "[not set]"; else if (!*cp) cp = "[set]"; line += std::string(cp) + "\n";