diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-26 10:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-26 14:07:55 +0200 |
commit | c04a8576f07cb837439959b8bdbb8b620684d508 (patch) | |
tree | 5cc7a885cef407f51c2661532bf9b1c23dfee734 /unoidl/source/unoidlprovider.cxx | |
parent | 3708195d0c94cf1c50febc49fcfa6a9ff6855336 (diff) |
loplugin:constfields in unoidl
Change-Id: I8d13626322e419d5d21a8e364de446bb6804ffa6
Reviewed-on: https://gerrit.libreoffice.org/60982
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl/source/unoidlprovider.cxx')
-rw-r--r-- | unoidl/source/unoidlprovider.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unoidl/source/unoidlprovider.cxx b/unoidl/source/unoidlprovider.cxx index bfbed9d02dd6..6685f1fe289a 100644 --- a/unoidl/source/unoidlprovider.cxx +++ b/unoidl/source/unoidlprovider.cxx @@ -83,7 +83,7 @@ namespace { // sizeof (Memory16) == 2 struct Memory16 { - unsigned char byte[2]; + unsigned char const byte[2]; sal_uInt16 getUnsigned16() const { return static_cast< sal_uInt16 >(byte[0]) @@ -93,7 +93,7 @@ struct Memory16 { // sizeof (Memory32) == 4 struct Memory32 { - unsigned char byte[4]; + unsigned char const byte[4]; sal_uInt32 getUnsigned32() const { return static_cast< sal_uInt32 >(byte[0]) @@ -124,7 +124,7 @@ struct Memory32 { // sizeof (Memory64) == 8 struct Memory64 { - unsigned char byte[8]; + unsigned char const byte[8]; sal_uInt64 getUnsigned64() const { return static_cast< sal_uInt64 >(byte[0]) @@ -452,8 +452,8 @@ OUString MappedFile::readIdxString( // sizeof (MapEntry) == 8 struct MapEntry { - Memory32 name; - Memory32 data; + Memory32 const name; + Memory32 const data; }; static bool operator <(const Map& map1, const Map& map2) { |