[Libreoffice-commits] .: store/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Mon Jan 30 23:51:44 PST 2012
store/source/storlckb.cxx | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
New commits:
commit 51b85a38b03781a93db33b7817d3c6cebcae11e7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jan 31 08:51:33 2012 +0100
Simplification
diff --git a/store/source/storlckb.cxx b/store/source/storlckb.cxx
index 7cedac4..9dca65e 100644
--- a/store/source/storlckb.cxx
+++ b/store/source/storlckb.cxx
@@ -66,16 +66,9 @@ OStoreLockBytes::OStoreLockBytes (void)
*/
OStoreLockBytes::~OStoreLockBytes (void)
{
- if (m_xManager.is())
+ if (m_xManager.is() && m_xNode.is())
{
- if (m_xNode.is())
- {
- OStorePageDescriptor aDescr (m_xNode->m_aDescr);
- if (m_bWriteable)
- m_xManager->releasePage (aDescr);
- else
- m_xManager->releasePage (aDescr);
- }
+ m_xManager->releasePage(m_xNode->m_aDescr);
}
}
More information about the Libreoffice-commits
mailing list