summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 10:04:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-17 08:13:06 +0200
commitb9f9f8253f89151beed27499e6db5c11a7d81eba (patch)
tree67e1506ecce80867e8a7fbf07ffe2ac5c1f6ad11 /test
parent0a910746b19f10f184f6ff8f41c868994a472ca9 (diff)
loplugin:constparams
Change-Id: I3d1b88dbd0ff73fddc08d52f50e0efb42daab89b Reviewed-on: https://gerrit.libreoffice.org/52756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/inc/unoapi_property_testers.hxx24
-rw-r--r--test/source/unoapi_property_testers.cxx27
2 files changed, 26 insertions, 25 deletions
diff --git a/test/inc/unoapi_property_testers.hxx b/test/inc/unoapi_property_testers.hxx
index 616ab3bc0cb5..fce19763e21f 100644
--- a/test/inc/unoapi_property_testers.hxx
+++ b/test/inc/unoapi_property_testers.hxx
@@ -24,7 +24,7 @@ namespace apitest
* @param name Name of property to test.
*/
void OOO_DLLPUBLIC_TEST testBooleanProperty(
- css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name);
+ css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name);
/** @brief Tester for read-only property type 'boolean' of a @see com::sun::star::beans::XPropertySet.
*
@@ -32,7 +32,7 @@ void OOO_DLLPUBLIC_TEST testBooleanProperty(
* @param name Name of property to test.
*/
void OOO_DLLPUBLIC_TEST testBooleanReadonlyProperty(
- css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name);
+ css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name);
/** @brief Tester for property type 'double' of a @see com::sun::star::beans::XPropertySet.
*
@@ -41,7 +41,7 @@ void OOO_DLLPUBLIC_TEST testBooleanReadonlyProperty(
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testDoubleProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testDoubleProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const double& dValue = 42.0);
/** @brief Tester for read-only property type 'double' of a @see com::sun::star::beans::XPropertySet.
@@ -51,7 +51,7 @@ testDoubleProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const double& dValue = 42.0);
/** @brief Tester for property type 'long' of a @see com::sun::star::beans::XPropertySet.
@@ -61,8 +61,8 @@ testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPrope
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name,
- const sal_Int32& nValue = 42);
+testLongProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
+ const OUString& name, const sal_Int32& nValue = 42);
/** @brief Tester for read-only property type 'long' of a @see com::sun::star::beans::XPropertySet.
*
@@ -71,7 +71,7 @@ testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, co
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const sal_Int32& nValue = 42);
/** @brief Tester for property type 'short' of a @see com::sun::star::beans::XPropertySet.
@@ -81,8 +81,8 @@ testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropert
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name,
- const sal_Int16& nValue = 42);
+testShortProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
+ const OUString& name, const sal_Int16& nValue = 42);
/** @brief Tester for read-only property type 'short' of a @see com::sun::star::beans::XPropertySet.
*
@@ -91,7 +91,7 @@ testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, c
* @param nValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const sal_Int16& nValue = 42);
/** @brief Tester for property type 'string' of a @see com::sun::star::beans::XPropertySet.
@@ -101,7 +101,7 @@ testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xProper
* @param rValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testStringProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const OUString& rValue);
/** @brief Tester for read-only property type 'string' of a @see com::sun::star::beans::XPropertySet.
@@ -111,7 +111,7 @@ testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
* @param rValue Value to use when setting a new value.
*/
void OOO_DLLPUBLIC_TEST
-testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet,
+testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
const OUString& name, const OUString& rValue);
} // namespace apitest
#endif // INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
diff --git a/test/source/unoapi_property_testers.cxx b/test/source/unoapi_property_testers.cxx
index 67589367ad99..b54bd396cc30 100644
--- a/test/source/unoapi_property_testers.cxx
+++ b/test/source/unoapi_property_testers.cxx
@@ -20,7 +20,8 @@ using namespace com::sun::star::uno;
namespace apitest
{
-void testBooleanProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name)
+void testBooleanProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
+ const OUString& name)
{
uno::Any aNewValue;
@@ -39,7 +40,7 @@ void testBooleanProperty(uno::Reference<beans::XPropertySet>& xPropertySet, cons
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), !bPropertyGet, bPropertySet);
}
-void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
+void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
const OUString& name)
{
uno::Any aNewValue;
@@ -58,8 +59,8 @@ void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertyS
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), bPropertyGet, bPropertySet);
}
-void testDoubleProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name,
- const double& dValue)
+void testDoubleProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
+ const OUString& name, const double& dValue)
{
uno::Any aNewValue;
@@ -78,7 +79,7 @@ void testDoubleProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(msgSet.getStr(), dValue, dPropertySet, 0.5);
}
-void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
+void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
const OUString& name, const double& dValue)
{
uno::Any aNewValue;
@@ -97,7 +98,7 @@ void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySe
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(msgSet.getStr(), dPropertyGet, dPropertySet, 0.5);
}
-void testLongProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name,
+void testLongProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name,
const sal_Int32& nValue)
{
uno::Any aNewValue;
@@ -117,7 +118,7 @@ void testLongProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const O
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nValue, nPropertySet);
}
-void testLongReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
+void testLongReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
const OUString& name, const sal_Int32& nValue)
{
uno::Any aNewValue;
@@ -136,8 +137,8 @@ void testLongReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nPropertyGet, nPropertySet);
}
-void testShortProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name,
- const sal_Int16& nValue)
+void testShortProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
+ const OUString& name, const sal_Int16& nValue)
{
uno::Any aNewValue;
@@ -156,7 +157,7 @@ void testShortProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nValue, nPropertySet);
}
-void testShortReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
+void testShortReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
const OUString& name, const sal_Int16& nValue)
{
uno::Any aNewValue;
@@ -175,8 +176,8 @@ void testShortReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nPropertyGet, nPropertySet);
}
-void testStringProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name,
- const OUString& rValue)
+void testStringProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
+ const OUString& name, const OUString& rValue)
{
uno::Any aNewValue;
@@ -195,7 +196,7 @@ void testStringProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const
CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), rValue, sPropertySet);
}
-void testStringReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet,
+void testStringReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet,
const OUString& name, const OUString& rValue)
{
uno::Any aNewValue;