diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-08 04:42:36 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-12-08 05:05:53 +0300 |
commit | b3d3b95a16be5b1785681f0f6fdc3bcdb967a42e (patch) | |
tree | d507c610892797e467f8a0b1fc5d8b088b1e6bee /plugins/New_GPG/src/log.cpp | |
parent | 75f678d3a4f23536e2170582dabd740eb195fa17 (diff) |
new_gpg: get rid of "extern chaos"
- moving ui related code to separated file, split definition and implementation of ui
Diffstat (limited to 'plugins/New_GPG/src/log.cpp')
-rwxr-xr-x[-rw-r--r--] | plugins/New_GPG/src/log.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/New_GPG/src/log.cpp b/plugins/New_GPG/src/log.cpp index bc3dc5047f..c4d0ef7156 100644..100755 --- a/plugins/New_GPG/src/log.cpp +++ b/plugins/New_GPG/src/log.cpp @@ -19,7 +19,7 @@ logtofile& logtofile::operator<<(wchar_t *buf) { - if(_bDebugLog != bDebugLog) + if(_bDebugLog != globals.bDebugLog) init(); log_mutex.lock(); log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate); @@ -31,7 +31,7 @@ logtofile& logtofile::operator<<(wchar_t *buf) } logtofile& logtofile::operator<<(char *buf) { - if(_bDebugLog != bDebugLog) + if(_bDebugLog != globals.bDebugLog) init(); log_mutex.lock(); log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate); @@ -43,7 +43,7 @@ logtofile& logtofile::operator<<(char *buf) } logtofile& logtofile::operator<<(string buf) { - if(_bDebugLog != bDebugLog) + if(_bDebugLog != globals.bDebugLog) init(); log_mutex.lock(); char *tmp = mir_utf8encode(buf.c_str()); @@ -57,7 +57,7 @@ logtofile& logtofile::operator<<(string buf) } logtofile& logtofile::operator<<(wstring buf) { - if(_bDebugLog != bDebugLog) + if(_bDebugLog != globals.bDebugLog) init(); log_mutex.lock(); log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate); @@ -69,13 +69,13 @@ logtofile& logtofile::operator<<(wstring buf) } void logtofile::init() { - if(bDebugLog) + if(globals.bDebugLog) { if(path) mir_free(path); path = UniGetContactSettingUtf(NULL, szGPGModuleName, "szLogFilePath", L"C:\\GPGdebug.log"); } - _bDebugLog = bDebugLog; + _bDebugLog = globals.bDebugLog; } logtofile::logtofile() { |