fix code style
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Wed, 16 Dec 2015 12:56:23 +0000 (13:56 +0100)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Wed, 16 Dec 2015 12:56:23 +0000 (13:56 +0100)
src/logfunc.cpp
src/logfunc.hpp

index f21d504..c6883fc 100644 (file)
@@ -451,7 +451,7 @@ PartLogger::LogHelper::~LogHelper()
  * @param part name of the part (module name) using the logger instance.
  */
 PartLogger::PartLogger(const std::string& part)
-: Part(part), keep_unsafe_chars(false)
+: Part(part), KeepUnsafeChars(false)
 {
 } // eo PartLogger::PartLogger(const std.:string&)
 
@@ -465,7 +465,7 @@ PartLogger::PartLogger(const std::string& part)
  * currently known extensions: cpp, cxx, c++, cc, C).
  */
 PartLogger::PartLogger( const SourceLocation& loc )
-: keep_unsafe_chars(false)
+: KeepUnsafeChars(false)
 {
     if (loc.Line>0 && ! loc.File.empty())
     {
@@ -506,59 +506,59 @@ void PartLogger::log(int level, const std::string &msg, bool keep_unsafe_chars)
 
 void PartLogger::fatal(const std::string& msg)
 {
-    log(LOG_EMERG,msg,keep_unsafe_chars);
+    log(LOG_EMERG,msg,KeepUnsafeChars);
 } // eo PartLogger::fatal(const std::string&)
 
 
 void PartLogger::alert(const std::string& msg)
 {
-    log(LOG_ALERT,msg,keep_unsafe_chars);
+    log(LOG_ALERT,msg,KeepUnsafeChars);
 } // eo PartLogger::alert(const std::string&)
 
 
 void PartLogger::critical(const std::string& msg)
 {
-    log(LOG_CRIT,msg,keep_unsafe_chars);
+    log(LOG_CRIT,msg,KeepUnsafeChars);
 } // eo PartLogger::critical(const std::string&)
 
 
 void PartLogger::error(const std::string& msg)
 {
-    log(LOG_ERR, msg,keep_unsafe_chars);
+    log(LOG_ERR, msg,KeepUnsafeChars);
 } // eo PartLogger::error(const std::string&)
 
 
 void PartLogger::warning(const std::string& msg)
 {
-    log(LOG_WARNING, msg,keep_unsafe_chars);
+    log(LOG_WARNING, msg,KeepUnsafeChars);
 } // eo PartLogger::warning(const std::string&)
 
 
 void PartLogger::notice(const std::string& msg)
 {
-    log(LOG_NOTICE, msg,keep_unsafe_chars);
+    log(LOG_NOTICE, msg,KeepUnsafeChars);
 } // eo PartLogger::notice(const std::string&)
 
 
 void PartLogger::info(const std::string& msg)
 {
-    log(LOG_INFO, msg,keep_unsafe_chars);
+    log(LOG_INFO, msg,KeepUnsafeChars);
 } // eo PartLogger::info(const std::string&)
 
 
 void PartLogger::debug(const std::string& msg)
 {
-    log(LOG_DEBUG, msg,keep_unsafe_chars);
+    log(LOG_DEBUG, msg,KeepUnsafeChars);
 } // eo PartLogger::debug(const std::string&)
 
 void PartLogger::set_keep_unsafe_chars(bool _keep_unsafe_chars)
 {
-    keep_unsafe_chars=_keep_unsafe_chars;
+    KeepUnsafeChars=_keep_unsafe_chars;
 }
 
 bool PartLogger::get_keep_unsafe_chars()
 {
-    return keep_unsafe_chars;
+    return KeepUnsafeChars;
 }
 
 PartLogger::LogHelper PartLogger::fatal(const SourceLocation& loc)
index 34d1134..56b1814 100644 (file)
@@ -179,7 +179,7 @@ class PartLogger
     protected:
 
         std::string Part;
-        bool keep_unsafe_chars;
+        bool KeepUnsafeChars;
 
 }; // eo class PartLogger