]> git.mxchange.org Git - simgear.git/commitdiff
std::string::c_str() is const
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 21 Aug 2010 07:02:12 +0000 (09:02 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 21 Aug 2010 07:02:12 +0000 (09:02 +0200)
simgear/misc/sg_path.hxx

index 535eef85720830f8e660d10456a9d5a5bab9efb1..77b69ca3e061a877f604288ce104803d5a889617 100644 (file)
@@ -131,7 +131,7 @@ public:
      * Get the path string
      * @return path in "C" string (ptr to char array) form.
      */
-    const char* c_str() { return path.c_str(); }
+    const char* c_str() const { return path.c_str(); }
 
     /**
      * Determine if file exists by attempting to fopen it.