summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 13:56:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-19 16:54:50 +0200
commitfbf1e4a5d3b6f35b7d6510755ebf58c87f566da0 (patch)
treecbe775c6110d61e403ea5ef8689618107495c85b /cppu
parent8ea031a817a5451b949720c961d963453b032eaf (diff)
loplugin:constparams in cppu
Change-Id: I0e772b8cf4ee281b5f3e26131df985607a569c48 Reviewed-on: https://gerrit.libreoffice.org/40156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/static_types.cxx2
-rw-r--r--cppu/source/typelib/typelib.cxx2
-rw-r--r--cppu/source/typelib/typelib.hxx2
-rw-r--r--cppu/source/uno/lbenv.cxx8
-rw-r--r--cppu/source/uno/prim.hxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx
index 0a7c1ac1a9e8..1f95dfd93fad 100644
--- a/cppu/source/typelib/static_types.cxx
+++ b/cppu/source/typelib/static_types.cxx
@@ -96,7 +96,7 @@ namespace
}
// !for NOT REALLY WEAK TYPES only!
-static inline typelib_TypeDescriptionReference * igetTypeByName( rtl_uString * pTypeName )
+static inline typelib_TypeDescriptionReference * igetTypeByName( rtl_uString const * pTypeName )
{
typelib_TypeDescriptionReference * pRef = nullptr;
::typelib_typedescriptionreference_getByName( &pRef, pTypeName );
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 063e0ba8ddb1..ac4e517aaac5 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -2216,7 +2216,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getDescription(
extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
- typelib_TypeDescriptionReference ** ppRet, rtl_uString * pName )
+ typelib_TypeDescriptionReference ** ppRet, rtl_uString const * pName )
SAL_THROW_EXTERN_C()
{
if( *ppRet )
diff --git a/cppu/source/typelib/typelib.hxx b/cppu/source/typelib/typelib.hxx
index 18c8daa04b53..30f0f22c986c 100644
--- a/cppu/source/typelib/typelib.hxx
+++ b/cppu/source/typelib/typelib.hxx
@@ -35,7 +35,7 @@ extern "C" void SAL_CALL typelib_typedescription_newEmpty(
extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
typelib_TypeDescriptionReference ** ppRet,
- rtl_uString * pName )
+ rtl_uString const * pName )
SAL_THROW_EXTERN_C();
#endif // INCLUDED_CPPU_SOURCE_TYPELIB_HXX
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index f8c225de7bd1..116c02e8ab77 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -52,8 +52,8 @@ namespace
{
-inline bool td_equals( typelib_InterfaceTypeDescription * pTD1,
- typelib_InterfaceTypeDescription * pTD2 )
+inline bool td_equals( typelib_InterfaceTypeDescription const * pTD1,
+ typelib_InterfaceTypeDescription const * pTD2 )
{
return (pTD1 == pTD2 ||
(pTD1->aBase.pTypeName->length == pTD2->aBase.pTypeName->length &&
@@ -89,7 +89,7 @@ struct ObjectEntry
uno_freeProxyFunc fpFreeProxy );
inline InterfaceEntry * find(
typelib_InterfaceTypeDescription * pTypeDescr );
- inline sal_Int32 find( void * iface_ptr, std::size_t pos );
+ inline sal_Int32 find( void const * iface_ptr, std::size_t pos );
};
@@ -213,7 +213,7 @@ inline InterfaceEntry * ObjectEntry::find(
inline sal_Int32 ObjectEntry::find(
- void * iface_ptr, std::size_t pos )
+ void const * iface_ptr, std::size_t pos )
{
std::size_t size = aInterfaces.size();
for ( ; pos < size; ++pos )
diff --git a/cppu/source/uno/prim.hxx b/cppu/source/uno/prim.hxx
index 619dba3a1255..f497f6f6cf5d 100644
--- a/cppu/source/uno/prim.hxx
+++ b/cppu/source/uno/prim.hxx
@@ -142,7 +142,7 @@ extern "C" void * binuno_queryInterface(
inline bool _type_equals(
- typelib_TypeDescriptionReference * pType1, typelib_TypeDescriptionReference * pType2 )
+ typelib_TypeDescriptionReference const * pType1, typelib_TypeDescriptionReference const * pType2 )
{
return (pType1 == pType2 ||