fix(format): scope

This commit is contained in:
Alex Fabijanic 2022-06-19 18:54:24 +02:00
parent 283321a11d
commit dc201ade08
2 changed files with 6 additions and 6 deletions

View File

@ -127,7 +127,7 @@ void format(std::string& result, const std::string& fmt, T arg1, Args... args)
values.reserve(sizeof...(Args) + 1);
values.emplace_back(arg1);
values.insert(values.end(), { args... });
::format(result, fmt, values);
format(result, fmt, values);
}
@ -144,7 +144,7 @@ void format(std::string& result, const char* fmt, T arg1, Args... args)
values.reserve(sizeof...(Args) + 1);
values.emplace_back(arg1);
values.insert(values.end(), { args... });
::format(result, fmt, values);
format(result, fmt, values);
}
@ -162,7 +162,7 @@ std::string format(const std::string& fmt, T arg1, Args... args)
values.emplace_back(arg1);
values.insert(values.end(), { args... });
std::string result;
::format(result, fmt, values);
format(result, fmt, values);
return result;
}
@ -181,7 +181,7 @@ std::string format(const char* fmt, T arg1, Args... args)
values.emplace_back(arg1);
values.insert(values.end(), { args... });
std::string result;
::format(result, fmt, values);
format(result, fmt, values);
return result;
}

View File

@ -1517,7 +1517,7 @@ void VarTest::testLongLong()
try
{
Int16 value2; value2 = a1.extract<Int16>();
POCO_UNUSED Int16 value2; value2 = a1.extract<Int16>();
fail("bad cast - must throw");
}
catch (Poco::BadCastException&)
@ -1611,7 +1611,7 @@ void VarTest::testULongLong()
try
{
Int16 value2; value2 = a1.extract<Int16>();
POCO_UNUSED Int16 value2; value2 = a1.extract<Int16>();
fail("bad cast - must throw");
}
catch (Poco::BadCastException&)