loplugin:constparams: basic (clang-cl)
Change-Id: Ia84473360333cb4905692a4d9d0358c93acebff8
This commit is contained in:
parent
b02998a7cb
commit
f192302a57
@ -142,7 +142,7 @@ template< typename T > void add(
|
|||||||
*reinterpret_cast< T * >(align(blob, alignment, offset, sizeof (T))) = data;
|
*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);
|
OSL_ASSERT(variable != nullptr);
|
||||||
if ((variable->GetType() & SbxARRAY) == 0) {
|
if ((variable->GetType() & SbxARRAY) == 0) {
|
||||||
switch (variable->GetType()) {
|
switch (variable->GetType()) {
|
||||||
@ -204,7 +204,7 @@ ErrCode marshalString(
|
|||||||
}
|
}
|
||||||
|
|
||||||
ErrCode marshalStruct(
|
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)
|
MarshalData & data)
|
||||||
{
|
{
|
||||||
OSL_ASSERT(variable != nullptr);
|
OSL_ASSERT(variable != nullptr);
|
||||||
@ -220,7 +220,7 @@ ErrCode marshalStruct(
|
|||||||
}
|
}
|
||||||
|
|
||||||
ErrCode marshalArray(
|
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)
|
MarshalData & data)
|
||||||
{
|
{
|
||||||
OSL_ASSERT(variable != nullptr);
|
OSL_ASSERT(variable != nullptr);
|
||||||
@ -436,7 +436,7 @@ void const * unmarshal(SbxVariable * variable, void const * data) {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrCode unmarshalString(StringData const & data, SbxVariable & result) {
|
ErrCode unmarshalString(StringData const & data, SbxVariable const & result) {
|
||||||
OUString str;
|
OUString str;
|
||||||
if (data.buffer != nullptr) {
|
if (data.buffer != nullptr) {
|
||||||
char const * p = static_cast< char const * >(data.buffer);
|
char const * p = static_cast< char const * >(data.buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user