mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
fix(format): scope
This commit is contained in:
@@ -127,7 +127,7 @@ void format(std::string& result, const std::string& fmt, T arg1, Args... args)
|
|||||||
values.reserve(sizeof...(Args) + 1);
|
values.reserve(sizeof...(Args) + 1);
|
||||||
values.emplace_back(arg1);
|
values.emplace_back(arg1);
|
||||||
values.insert(values.end(), { args... });
|
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.reserve(sizeof...(Args) + 1);
|
||||||
values.emplace_back(arg1);
|
values.emplace_back(arg1);
|
||||||
values.insert(values.end(), { args... });
|
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.emplace_back(arg1);
|
||||||
values.insert(values.end(), { args... });
|
values.insert(values.end(), { args... });
|
||||||
std::string result;
|
std::string result;
|
||||||
::format(result, fmt, values);
|
format(result, fmt, values);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ std::string format(const char* fmt, T arg1, Args... args)
|
|||||||
values.emplace_back(arg1);
|
values.emplace_back(arg1);
|
||||||
values.insert(values.end(), { args... });
|
values.insert(values.end(), { args... });
|
||||||
std::string result;
|
std::string result;
|
||||||
::format(result, fmt, values);
|
format(result, fmt, values);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1517,7 +1517,7 @@ void VarTest::testLongLong()
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Int16 value2; value2 = a1.extract<Int16>();
|
POCO_UNUSED Int16 value2; value2 = a1.extract<Int16>();
|
||||||
fail("bad cast - must throw");
|
fail("bad cast - must throw");
|
||||||
}
|
}
|
||||||
catch (Poco::BadCastException&)
|
catch (Poco::BadCastException&)
|
||||||
@@ -1611,7 +1611,7 @@ void VarTest::testULongLong()
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Int16 value2; value2 = a1.extract<Int16>();
|
POCO_UNUSED Int16 value2; value2 = a1.extract<Int16>();
|
||||||
fail("bad cast - must throw");
|
fail("bad cast - must throw");
|
||||||
}
|
}
|
||||||
catch (Poco::BadCastException&)
|
catch (Poco::BadCastException&)
|
||||||
|
|||||||
Reference in New Issue
Block a user