summaryrefslogtreecommitdiff
path: root/store/source/storpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'store/source/storpage.cxx')
-rw-r--r--store/source/storpage.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/store/source/storpage.cxx b/store/source/storpage.cxx
index a4b573219a95..d441121e0ac4 100644
--- a/store/source/storpage.cxx
+++ b/store/source/storpage.cxx
@@ -160,7 +160,7 @@ storeError OStorePageManager::remove_Impl (entry & rEntry)
// Check current page index.
PageHolderObject< page > xPage (aNode.get());
sal_uInt16 i = xPage->find (rEntry), n = xPage->usageCount();
- if (!(i < n))
+ if (i >= n)
{
// Path to entry not exists (Must not happen(?)).
return store_E_NotExists;
@@ -191,7 +191,7 @@ storeError OStorePageManager::remove_Impl (entry & rEntry)
// Check index.
i = xPage->find (rEntry);
n = xPage->usageCount();
- if (!(i < n))
+ if (i >= n)
{
// Path to entry not exists (Must not happen(?)).
return store_E_NotExists;
@@ -229,7 +229,7 @@ storeError OStorePageManager::namei (
return store_E_InvalidParameter;
// Check name length.
- if (!(pName->length < STORE_MAXIMUM_NAMESIZE))
+ if (pName->length >= STORE_MAXIMUM_NAMESIZE)
return store_E_NameTooLong;
// Transform pathname into key.