diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/source/lockbyte.cxx | 4 | ||||
-rw-r--r-- | store/source/storbase.hxx | 2 |
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); |