changeset 549:bc8a2831b6df

Ini: some style
author David Demelier <markand@malikania.fr>
date Wed, 15 Jun 2016 13:31:29 +0200
parents f48bb09bccc7
children d6dd0d58b3a3
files modules/ini/ini.cpp modules/ini/ini.hpp
diffstat 2 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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("/\\");
 
--- 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: