From 8f28c82e2fb26b453a2cfe976e48f74d97d6388a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 25 Dec 2014 15:57:01 +0000 Subject: Corrected a number of const references in the ini stream reader. --- src/filesystem/inistream.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/filesystem') 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; } -- cgit v1.2.3