From ac758a431bd92d09274916f7dc66b89f337dbec0 Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Wed, 16 Dec 2015 13:56:23 +0100 Subject: [PATCH] fix code style --- src/logfunc.cpp | 24 ++++++++++++------------ src/logfunc.hpp | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/logfunc.cpp b/src/logfunc.cpp index f21d504..c6883fc 100644 --- a/src/logfunc.cpp +++ b/src/logfunc.cpp @@ -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) diff --git a/src/logfunc.hpp b/src/logfunc.hpp index 34d1134..56b1814 100644 --- a/src/logfunc.hpp +++ b/src/logfunc.hpp @@ -179,7 +179,7 @@ class PartLogger protected: std::string Part; - bool keep_unsafe_chars; + bool KeepUnsafeChars; }; // eo class PartLogger -- 1.7.1