namespace PT renamed to pt
This commit is contained in:
@@ -187,7 +187,7 @@ const std::wstring & DbBase::AssertValueWide(PGresult * r, int row, int col)
|
||||
const char * res = AssertValue(r, row, col);
|
||||
static std::wstring temp_wide_value; // !! IMPROVE ME add as a class field (nonstatic)
|
||||
|
||||
PT::UTF8ToWide(res, temp_wide_value);
|
||||
pt::UTF8ToWide(res, temp_wide_value);
|
||||
|
||||
return temp_wide_value;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ void DbBase::AssertValueBin(PGresult * r, int row, int col, std::string & result
|
||||
void DbBase::AssertValueWide(PGresult * r, int row, int col, std::wstring & result)
|
||||
{
|
||||
const char * res = AssertValue(r, row, col);
|
||||
PT::UTF8ToWide(res, result);
|
||||
pt::UTF8ToWide(res, result);
|
||||
}
|
||||
|
||||
|
||||
@@ -247,28 +247,28 @@ unsigned int DbBase::AssertValueUInt(PGresult * r, int row, int col)
|
||||
|
||||
|
||||
|
||||
PT::Date DbBase::AssertValueDate(PGresult * r, int row, int col)
|
||||
pt::Date DbBase::AssertValueDate(PGresult * r, int row, int col)
|
||||
{
|
||||
PT::Date date = AssertValue(r, row, col);
|
||||
pt::Date date = AssertValue(r, row, col);
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
|
||||
bool DbBase::AssertValueSpace(PGresult * r, int row, int col, PT::Space & space)
|
||||
bool DbBase::AssertValueSpace(PGresult * r, int row, int col, pt::Space & space)
|
||||
{
|
||||
const char * res = AssertValue(r, row, col);
|
||||
|
||||
conf_parser.SetSpace(space);
|
||||
space.clear();
|
||||
|
||||
PT::SpaceParser::Status status = conf_parser.ParseSpace(res);
|
||||
pt::SpaceParser::Status status = conf_parser.ParseSpace(res);
|
||||
|
||||
if( status != PT::SpaceParser::ok )
|
||||
if( status != pt::SpaceParser::ok )
|
||||
{
|
||||
log << log1 << "Db: a problem with parsing a PT::Space";
|
||||
|
||||
if( status == PT::SpaceParser::syntax_error )
|
||||
if( status == pt::SpaceParser::syntax_error )
|
||||
log << ", syntax error at line: " << conf_parser.get_last_parsed_line();
|
||||
|
||||
log << logend;
|
||||
|
Reference in New Issue
Block a user