summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/qa/unit/types_test.cxx12
-rw-r--r--comphelper/qa/unit/variadictemplates.cxx12
-rw-r--r--comphelper/source/misc/configuration.cxx4
3 files changed, 14 insertions, 14 deletions
diff --git a/comphelper/qa/unit/types_test.cxx b/comphelper/qa/unit/types_test.cxx
index a0f136a5f49f..c69b07199127 100644
--- a/comphelper/qa/unit/types_test.cxx
+++ b/comphelper/qa/unit/types_test.cxx
@@ -42,7 +42,7 @@ public:
void TypesTest::testGetINT64()
{
- CPPUNIT_ASSERT_EQUAL(sal_Int64(1337), ::comphelper::getINT64(uno::makeAny(sal_Int64(1337))));
+ CPPUNIT_ASSERT_EQUAL(sal_Int64(1337), ::comphelper::getINT64(uno::Any(sal_Int64(1337))));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(sal_Int64(0), ::comphelper::getINT64(aValue));
@@ -50,7 +50,7 @@ void TypesTest::testGetINT64()
void TypesTest::testGetINT32()
{
- CPPUNIT_ASSERT_EQUAL(sal_Int32(1337), ::comphelper::getINT32(uno::makeAny(sal_Int32(1337))));
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(1337), ::comphelper::getINT32(uno::Any(sal_Int32(1337))));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ::comphelper::getINT32(aValue));
@@ -58,7 +58,7 @@ void TypesTest::testGetINT32()
void TypesTest::testGetINT16()
{
- CPPUNIT_ASSERT_EQUAL(sal_Int16(1337), ::comphelper::getINT16(uno::makeAny(sal_Int16(1337))));
+ CPPUNIT_ASSERT_EQUAL(sal_Int16(1337), ::comphelper::getINT16(uno::Any(sal_Int16(1337))));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(sal_Int16(0), ::comphelper::getINT16(aValue));
@@ -66,7 +66,7 @@ void TypesTest::testGetINT16()
void TypesTest::testGetDouble()
{
- CPPUNIT_ASSERT_EQUAL(1337.1337, ::comphelper::getDouble(uno::makeAny(1337.1337)));
+ CPPUNIT_ASSERT_EQUAL(1337.1337, ::comphelper::getDouble(uno::Any(1337.1337)));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(0.0, ::comphelper::getDouble(aValue));
@@ -75,7 +75,7 @@ void TypesTest::testGetDouble()
void TypesTest::testGetFloat()
{
CPPUNIT_ASSERT_EQUAL(static_cast<float>(1337.0),
- ::comphelper::getFloat(uno::makeAny(static_cast<float>(1337.0))));
+ ::comphelper::getFloat(uno::Any(static_cast<float>(1337.0))));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(static_cast<float>(0.0), ::comphelper::getFloat(aValue));
@@ -83,7 +83,7 @@ void TypesTest::testGetFloat()
void TypesTest::testGetString()
{
- CPPUNIT_ASSERT_EQUAL(OUString("1337"), ::comphelper::getString(uno::makeAny(OUString("1337"))));
+ CPPUNIT_ASSERT_EQUAL(OUString("1337"), ::comphelper::getString(uno::Any(OUString("1337"))));
uno::Any aValue;
CPPUNIT_ASSERT_EQUAL(OUString(""), ::comphelper::getString(aValue));
diff --git a/comphelper/qa/unit/variadictemplates.cxx b/comphelper/qa/unit/variadictemplates.cxx
index e729d76b24ed..6b62204f487c 100644
--- a/comphelper/qa/unit/variadictemplates.cxx
+++ b/comphelper/qa/unit/variadictemplates.cxx
@@ -91,22 +91,22 @@ void VariadicTemplatesTest::testUnwrapArgs() {
sal_Int32 tmp2 = 42;
sal_uInt32 tmp3 = 42;
::com::sun::star::uno::Any tmp6(
- ::com::sun::star::uno::makeAny( tmp1 )
+ tmp1
);
::com::sun::star::uno::Any tmp7(
- ::com::sun::star::uno::makeAny( tmp2 )
+ tmp2
);
::com::sun::star::uno::Any tmp8(
- ::com::sun::star::uno::makeAny( tmp3 )
+ tmp3
);
::com::sun::star::uno::Any tmp9(
- ::com::sun::star::uno::makeAny( OUString("Test2") )
+ OUString("Test2")
);
::std::optional< ::com::sun::star::uno::Any > tmp10(
- ::com::sun::star::uno::makeAny( OUString("Test3") )
+ OUString("Test3")
);
::std::optional< ::com::sun::star::uno::Any > tmp11(
- ::com::sun::star::uno::makeAny( tmp1 )
+ tmp1
);
// test equality with the baseline and template specialization with
diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx
index a8ef15ac9178..097eabb6a345 100644
--- a/comphelper/source/misc/configuration.cxx
+++ b/comphelper/source/misc/configuration.cxx
@@ -145,8 +145,8 @@ comphelper::detail::ConfigurationWrapper::ConfigurationWrapper():
// set root path
css::uno::Sequence< css::uno::Any > params {
- css::uno::makeAny( css::beans::NamedValue{ "nodepath", css::uno::makeAny( OUString("/"))} ),
- css::uno::makeAny( css::beans::NamedValue{ "locale", css::uno::makeAny( OUString("*"))} ) };
+ css::uno::Any( css::beans::NamedValue{ "nodepath", css::uno::Any( OUString("/"))} ),
+ css::uno::Any( css::beans::NamedValue{ "locale", css::uno::Any( OUString("*"))} ) };
css::uno::Reference< css::uno::XInterface > xCfg
= xConfigProvider->createInstanceWithArguments(u"com.sun.star.configuration.ConfigurationAccess",