summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-08 12:36:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-10 12:02:44 +0200
commit366d08f2f6d4de922f6099c62bb81b49d89e0a68 (patch)
treeb232884af6e844c2f0994859e4b42efbc1ce654c /store
parent75a2257a5bd716a9f937abe5e53f305c983afd5d (diff)
new loplugin:simplifypointertobool
Change-Id: Iff68e8f379614a6ab6a6e0d1bad18e70bc76d76a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/lockbyte.cxx4
-rw-r--r--store/source/storbase.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index 2806dc5a3693..91de98023c48 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -373,7 +373,7 @@ storeError FileLockBytes::readPageAt_Impl (std::shared_ptr<PageData> & rPage, sa
if (!m_xAllocator.is())
return store_E_InvalidAccess;
- if (!rPage.get())
+ if (!rPage)
return store_E_OutOfMemory;
PageData * pagedata = rPage.get();
@@ -724,7 +724,7 @@ storeError MemoryLockBytes::readPageAt_Impl (std::shared_ptr<PageData> & rPage,
if (!m_xAllocator.is())
return store_E_InvalidAccess;
- if (!rPage.get())
+ if (!rPage)
return store_E_OutOfMemory;
PageData * pagedata = rPage.get();
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx
index 09b0e88b2ae5..a5245de7380e 100644
--- a/store/source/storbase.hxx
+++ b/store/source/storbase.hxx
@@ -570,7 +570,7 @@ public:
return store_E_InvalidAccess;
std::shared_ptr<PageData> tmp (rxAllocator->construct<U>(), PageData::Deallocate(rxAllocator));
- if (!tmp.get())
+ if (!tmp)
return store_E_OutOfMemory;
m_xPage.swap (tmp);