diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:06:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 12:14:39 +0200 |
commit | f192302a57a7c49f711c87eef548f93a3364d9b9 (patch) | |
tree | 1ae5f11e004b03dee5d3ae1f65c6c5bb05291b81 /basic | |
parent | b02998a7cb86bb69c01fd7c2625c801eef835e55 (diff) |
loplugin:constparams: basic (clang-cl)
Change-Id: Ia84473360333cb4905692a4d9d0358c93acebff8
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/dllmgr-x64.cxx | 8 |
1 files 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); |