namespace PT renamed to pt

This commit is contained in:
2021-05-20 20:59:12 +02:00
parent d66a36cf21
commit e48a28a5c8
100 changed files with 597 additions and 597 deletions

View File

@@ -101,7 +101,7 @@ void CloseDescriptors()
void LogInfo(Log & log, LogManipulators log_level, const char * msg, bool put_version, const char * msg2)
{
log << log_level;
log.PrintDate(PT::Date(std::time(0)));
log.PrintDate(pt::Date(std::time(0)));
log << ' ' << msg;
if( put_version )
@@ -120,7 +120,7 @@ void SavePidFile(Log & log)
if( !app.config.pid_file.empty() )
{
std::string file_name;
PT::WideToUTF8(app.config.pid_file, file_name);
pt::WideToUTF8(app.config.pid_file, file_name);
std::ofstream file(file_name);
if( !file )
@@ -142,7 +142,7 @@ void RemovePidFile()
if( !app.config.pid_file.empty() )
{
std::string file_name;
PT::WideToUTF8(app.config.pid_file, file_name);
pt::WideToUTF8(app.config.pid_file, file_name);
unlink(file_name.c_str());
}
}
@@ -166,7 +166,7 @@ using Winix::app;
app.system.system_start = time(0);
if( !PT::UTF8ToWide(argc[1], app.config.config_file) )
if( !pt::UTF8ToWide(argc[1], app.config.config_file) )
{
std::wcout << "An incorrect UTF-8 path of the config file" << std::endl;
return 6;