std::string::c_str() is const

This commit is contained in:
Frederic Bouvier
2010-08-21 09:02:12 +02:00
parent a7439aa056
commit c3133f020d

View 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.