summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-22 15:55:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-30 08:50:31 +0200
commit2ccde70d60d3a5074faf49260e8fe0ccdb91ff26 (patch)
tree82555c2aac7ca37c30e1084a7a8069c71fc11fbc /store
parent61ff1d919e317947c769e61eeda7f1bb8132f273 (diff)
teach redundantcast plugin about functional casts
Change-Id: Iac8ccd17d9e46ebb2cb55db7adb06c469bbd4ea0 Reviewed-on: https://gerrit.libreoffice.org/37910 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/stordata.hxx4
-rw-r--r--store/source/stordir.cxx2
-rw-r--r--store/source/storlckb.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index 6c81fd6af257..33bfe0ef32ee 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -39,7 +39,7 @@ namespace store
* OStoreDataPageData.
*
*======================================================================*/
-#define STORE_MAGIC_DATAPAGE sal_uInt32(0x94190310)
+constexpr sal_uInt32 STORE_MAGIC_DATAPAGE(0x94190310);
struct OStoreDataPageData : public store::PageData
{
@@ -123,7 +123,7 @@ public:
* OStoreIndirectionPageData.
*
*======================================================================*/
-#define STORE_MAGIC_INDIRECTPAGE sal_uInt32(0x89191107)
+constexpr sal_uInt32 STORE_MAGIC_INDIRECTPAGE(0x89191107);
struct OStoreIndirectionPageData : public store::PageData
{
diff --git a/store/source/stordir.cxx b/store/source/stordir.cxx
index 399af1d90d42..a4847cbc719e 100644
--- a/store/source/stordir.cxx
+++ b/store/source/stordir.cxx
@@ -63,7 +63,7 @@ static inline sal_Size convertTextToUnicode (
* OStoreDirectory_Impl implementation.
*
*======================================================================*/
-const sal_uInt32 OStoreDirectory_Impl::m_nTypeId = sal_uInt32(0x89191107);
+const sal_uInt32 OStoreDirectory_Impl::m_nTypeId(0x89191107);
/*
* OStoreDirectory_Impl.
diff --git a/store/source/storlckb.cxx b/store/source/storlckb.cxx
index eacfc8b140b7..05297cd38e03 100644
--- a/store/source/storlckb.cxx
+++ b/store/source/storlckb.cxx
@@ -39,7 +39,7 @@ using namespace store;
* OStoreLockBytes implementation.
*
*======================================================================*/
-const sal_uInt32 OStoreLockBytes::m_nTypeId = sal_uInt32(0x94190310);
+const sal_uInt32 OStoreLockBytes::m_nTypeId(0x94190310);
/*
* OStoreLockBytes.