diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-25 15:57:01 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-25 15:57:01 +0000 |
commit | 8f28c82e2fb26b453a2cfe976e48f74d97d6388a (patch) | |
tree | 38ee6bd2171907d51289420b5362419754d2d248 /src/filesystem | |
parent | 3d07b4c02d201f73c7929f6e517ca1e7b95f12ae (diff) |
Corrected a number of const references in the ini stream reader.
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/inistream.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/filesystem/inistream.h b/src/filesystem/inistream.h index 6aba4dc..92e17bc 100644 --- a/src/filesystem/inistream.h +++ b/src/filesystem/inistream.h @@ -18,10 +18,9 @@ namespace filesystem { -/// a class to read ini streams /** - * The IniStream class is able to decode the structure of a windows-like - * .ini file from a text stream. + * @brief a class to read ini streams + * The IniStream class is able to decode the structure of a windows-like .ini file from a text stream. **/ class IniStream { @@ -34,22 +33,26 @@ public: bool getline(std::istream & istream); /// current section label - inline std::string section() const { + inline const std::string & section() const + { return section_current; } /// current key - inline std::string key() const { + inline const std::string & key() const + { return key_current; } /// current value - inline std::string value() const { + inline const std::string & value() const + { return value_current; } /// current line number - inline unsigned int line() const { + inline unsigned int line() const + { return line_number; } |