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 87aefdbe4185..c89a3e2ff741 100644 --- a/store/source/lockbyte.cxx +++ b/store/source/lockbyte.cxx @@ -372,7 +372,7 @@ storeError FileLockBytes::readPageAt_Impl (std::shared_ptr<PageData> & rPage, sa storeError FileLockBytes::writePageAt_Impl (std::shared_ptr<PageData> const & rPage, sal_uInt32 nOffset) { PageData const * pagedata = rPage.get(); - OSL_PRECOND(pagedata != nullptr, "contract violation"); + assert(pagedata != nullptr && "contract violation"); return writeAt_Impl (nOffset, pagedata, pagedata->size()); } @@ -716,7 +716,7 @@ storeError MemoryLockBytes::readPageAt_Impl (std::shared_ptr<PageData> & rPage, storeError MemoryLockBytes::writePageAt_Impl (std::shared_ptr<PageData> const & rPage, sal_uInt32 nOffset) { PageData const * pagedata = rPage.get(); - OSL_PRECOND(!(pagedata == nullptr), "contract violation"); + assert(pagedata != nullptr && "contract violation"); return writeAt_Impl (nOffset, pagedata, pagedata->size()); } diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx index 207cbf40a8d3..6f9a4956ebd9 100644 --- a/store/source/storbase.hxx +++ b/store/source/storbase.hxx @@ -490,7 +490,7 @@ public: pHead->guard(nAddr); T * pImpl = dynamic_page_cast<T>(pHead); - OSL_PRECOND(pImpl != nullptr, "store::PageHolder<T>::guard(): Null pointer"); + assert(pImpl != nullptr && "store::PageHolder<T>::guard(): Null pointer"); pImpl->guard(); return store_E_None; |