Kaydet (Commit) fbf1e4a5 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in cppu

Change-Id: I0e772b8cf4ee281b5f3e26131df985607a569c48
Reviewed-on: https://gerrit.libreoffice.org/40156Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8ea031a8
......@@ -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 );
......
......@@ -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 )
......
......@@ -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
......
......@@ -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 )
......
......@@ -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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment