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

@@ -258,7 +258,7 @@ void NotifyThread::SendMail()
// second thread
void NotifyThread::SendMail(const std::wstring & email, const std::wstring & message)
{
log << log1 << PT::Date(std::time(0)) << ' ';
log << log1 << pt::Date(std::time(0)) << ' ';
if( !ValidateEmail(email) )
{
@@ -267,7 +267,7 @@ void NotifyThread::SendMail(const std::wstring & email, const std::wstring & mes
}
sendmail_command = "sendmail ";
PT::WideToUTF8(email, sendmail_command, false);
pt::WideToUTF8(email, sendmail_command, false);
FILE * sendmail = popen(sendmail_command.c_str(), "w");
if( !sendmail )
@@ -297,7 +297,7 @@ size_t len;
}
else
{
len = PT::IntToUTF8(int(message[i]), buf, sizeof(buf) / sizeof(char));
len = pt::IntToUTF8(int(message[i]), buf, sizeof(buf) / sizeof(char));
for(size_t a=0 ; a<len ; ++a)
fputc(buf[a], sendmail);