Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-08 16:25:20 +0000
committerStijn Buys <ingar@osirion.org>2008-03-08 16:25:20 +0000
commit7a62f99554c248724c42537363f2665df9748945 (patch)
tree252d1f3a1175c94f1f0b33772955cb260891eb94 /src/filesystem
parentb56c5b7a6fa8330b09bb65f270b5a6a7281367d3 (diff)
compiling with gcc 4.2.3 verified
Diffstat (limited to 'src/filesystem')
-rw-r--r--src/filesystem/inifile.cc2
-rw-r--r--src/filesystem/inifile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc
index 8b6e8ad..02dbcf8 100644
--- a/src/filesystem/inifile.cc
+++ b/src/filesystem/inifile.cc
@@ -100,7 +100,7 @@ bool IniFile::getline() {
return false;
}
-bool IniFile::got_key_string(char * const keylabel, std::string & valuestring) {
+bool IniFile::got_key_string(const char * keylabel, std::string & valuestring) {
//condebug << "IniFile got_value_string " << keylabel << " " << last_read_was_key << std::endl;
if (last_read_was_key && (key_current.compare(keylabel) == 0 )) {
valuestring.assign(value_current);
diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h
index ba7eb6a..632d432 100644
--- a/src/filesystem/inifile.h
+++ b/src/filesystem/inifile.h
@@ -58,7 +58,7 @@ public:
}
/// check if the last read key=value pair matches keylabel and store the value in valuestring
- bool got_key_string(char * const keylabel, std::string & valuestring);
+ bool got_key_string(const char * keylabel, std::string & valuestring);
inline unsigned int line() const {
return line_number;