From f192302a57a7c49f711c87eef548f93a3364d9b9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 31 Aug 2017 12:06:56 +0200 Subject: [PATCH] loplugin:constparams: basic (clang-cl) Change-Id: Ia84473360333cb4905692a4d9d0358c93acebff8 --- basic/source/runtime/dllmgr-x64.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx index ffc05ddfeb5a..fbd2d4948a32 100644 --- a/basic/source/runtime/dllmgr-x64.cxx +++ b/basic/source/runtime/dllmgr-x64.cxx @@ -142,7 +142,7 @@ template< typename T > void add( *reinterpret_cast< T * >(align(blob, alignment, offset, sizeof (T))) = data; } -std::size_t alignment(SbxVariable * variable) { +std::size_t alignment(SbxVariable const * variable) { OSL_ASSERT(variable != nullptr); if ((variable->GetType() & SbxARRAY) == 0) { switch (variable->GetType()) { @@ -204,7 +204,7 @@ ErrCode marshalString( } ErrCode marshalStruct( - SbxVariable * variable, std::vector< char > & blob, std::size_t offset, + SbxVariable const * variable, std::vector< char > & blob, std::size_t offset, MarshalData & data) { OSL_ASSERT(variable != nullptr); @@ -220,7 +220,7 @@ ErrCode marshalStruct( } ErrCode marshalArray( - SbxVariable * variable, std::vector< char > & blob, std::size_t offset, + SbxVariable const * variable, std::vector< char > & blob, std::size_t offset, MarshalData & data) { OSL_ASSERT(variable != nullptr); @@ -436,7 +436,7 @@ void const * unmarshal(SbxVariable * variable, void const * data) { return data; } -ErrCode unmarshalString(StringData const & data, SbxVariable & result) { +ErrCode unmarshalString(StringData const & data, SbxVariable const & result) { OUString str; if (data.buffer != nullptr) { char const * p = static_cast< char const * >(data.buffer);