diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-21 09:49:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-21 09:49:05 +0000 |
commit | 9b119cadd74e1343cad493e8b366e69743a620d0 (patch) | |
tree | e11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/Log.cpp | |
parent | 1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (diff) |
Quotes: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/Log.cpp')
-rw-r--r-- | plugins/Quotes/src/Log.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/Quotes/src/Log.cpp b/plugins/Quotes/src/Log.cpp index 250ca58497..844ffc7385 100644 --- a/plugins/Quotes/src/Log.cpp +++ b/plugins/Quotes/src/Log.cpp @@ -14,39 +14,39 @@ namespace #ifdef _DEBUG
return true;
#else
- return (1 == db_get_b(NULL,QUOTES_PROTOCOL_NAME,DB_STR_ENABLE_LOG,false));
+ return (1 == db_get_b(NULL, QUOTES_PROTOCOL_NAME, DB_STR_ENABLE_LOG, false));
#endif
}
- void do_log(const tstring& rsFileName,ESeverity nSeverity,const tstring& rsMsg)
+ void do_log(const tstring& rsFileName, const tstring& rsMsg)
{
CGuard<CLightMutex> guard(g_Mutex);
- tofstream file(rsFileName.c_str(),std::ios::ate|std::ios::app);
- if(file.good())
+ tofstream file(rsFileName.c_str(), std::ios::ate | std::ios::app);
+ if (file.good())
{
TCHAR szTime[20];
-// TCHAR sz[10000+1];
+ // TCHAR sz[10000+1];
_tstrtime_s(szTime);
file << szTime << _T(" ================================>\n") << rsMsg << _T("\n\n");
-
-// size_t cBytes = rsMsg.size();
-// const TCHAR* p = rsMsg.c_str();
-// for(size_t c = 0;c < cBytes;c += 10000,p+=10000)
-// {
-// _tcsncpy_s(sz,p,10000);
-// file << sz;
-// }
-//
-// file << "\n\n";
+
+ // size_t cBytes = rsMsg.size();
+ // const TCHAR* p = rsMsg.c_str();
+ // for(size_t c = 0;c < cBytes;c += 10000,p+=10000)
+ // {
+ // _tcsncpy_s(sz,p,10000);
+ // file << sz;
+ // }
+ //
+ // file << "\n\n";
}
}
}
-void LogIt(ESeverity nSeverity,const tstring& rsMsg)
+void LogIt(const tstring& rsMsg)
{
- if(is_log_enabled())
+ if (is_log_enabled())
{
tstring sFileName = get_log_file_name();
- do_log(sFileName,nSeverity,rsMsg);
+ do_log(sFileName, rsMsg);
}
}
|