# HG changeset patch # User David Demelier # Date 1465990289 -7200 # Node ID bc8a2831b6dfced4e230f492f4c1345f29d9c61a # Parent f48bb09bccc76ede9eeb6eac58c2d9720ca93ea6 Ini: some style diff -r f48bb09bccc7 -r bc8a2831b6df modules/ini/ini.cpp --- a/modules/ini/ini.cpp Wed Jun 15 13:13:26 2016 +0200 +++ b/modules/ini/ini.cpp Wed Jun 15 13:31:29 2016 +0200 @@ -54,7 +54,7 @@ inline bool isSpace(char c) noexcept { - /* Custom version because std::isspace includes \n as space */ + // Custom version because std::isspace includes \n as space. return c == ' ' || c == '\t'; } @@ -378,7 +378,7 @@ Document readFile(const std::string &filename) { - /* Get parent path */ + // Get parent path. auto parent = filename; auto pos = parent.find_last_of("/\\"); diff -r f48bb09bccc7 -r bc8a2831b6df modules/ini/ini.hpp --- a/modules/ini/ini.hpp Wed Jun 15 13:13:26 2016 +0200 +++ b/modules/ini/ini.hpp Wed Jun 15 13:31:29 2016 +0200 @@ -123,9 +123,9 @@ */ class Error : public std::exception { private: - int m_line; //!< line number - int m_column; //!< line column - std::string m_message; //!< error message + int m_line; //!< line number + int m_column; //!< line column + std::string m_message; //!< error message public: /** @@ -187,14 +187,14 @@ * \brief Token type. */ enum Type { - Include, //!< include statement - Section, //!< [section] - Word, //!< word without quotes - QuotedWord, //!< word with quotes - Assign, //!< = assignment - ListBegin, //!< begin of list ( - ListEnd, //!< end of list ) - Comma //!< list separation + Include, //!< include statement + Section, //!< [section] + Word, //!< word without quotes + QuotedWord, //!< word with quotes + Assign, //!< = assignment + ListBegin, //!< begin of list ( + ListEnd, //!< end of list ) + Comma //!< list separation }; private: