mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
fix(format): scope
This commit is contained in:
parent
283321a11d
commit
dc201ade08
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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&)
|
||||
|
Loading…
x
Reference in New Issue
Block a user