summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--store/source/storbase.hxx6
-rw-r--r--store/source/stordata.hxx10
2 files changed, 14 insertions, 2 deletions
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx
index 83dd44888219..2eed63736500 100644
--- a/store/source/storbase.hxx
+++ b/store/source/storbase.hxx
@@ -751,7 +751,9 @@ public:
return store_E_InvalidAccess;
pHead->guard(nAddr);
- OSL_PRECOND(dynamic_page_cast<T>(pHead) != 0, "store::PageHolder<T>::guard(): Null pointer");
+ T * pImpl = dynamic_page_cast<T>(pHead);
+ OSL_PRECOND(pImpl != 0, "store::PageHolder<T>::guard(): Null pointer");
+ pImpl->guard();
return store_E_None;
}
@@ -769,7 +771,7 @@ public:
if (!pImpl)
return store_E_WrongVersion;
- return store_E_None;
+ return pImpl->verify();
}
};
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index a8b131778778..82b7d68b5029 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -87,6 +87,16 @@ struct OStoreDataPageData : public store::OStorePageData
if (capacity()) memset (m_pData, 0, capacity());
}
+ /** guard (external representation).
+ */
+ void guard() { (void) this; /* loplugin:staticmethods */ }
+
+ /** verify (external representation).
+ */
+ storeError verify() const {
+ (void) this; // loplugin:staticmethods
+ return store_E_None;
+ }
};
/*========================================================================