From e7641433c0079a35652893ab15ae6997e3e3a933 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 17 Aug 2014 00:43:47 +0200 Subject: convert int to bool Change-Id: I4fb95c90dc1f188f8088ba1e4b7bfd0ebc59eb60 --- registry/source/keyimpl.cxx | 4 ++-- registry/source/keyimpl.hxx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'registry') diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index 52c26425541b..40f798379657 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -36,8 +36,8 @@ namespace { static char const VALUE_PREFIX[] = "$VL_"; } ORegKey::ORegKey(const OUString& keyName, ORegistry* pReg) : m_refCount(1) , m_name(keyName) - , m_bDeleted(0) - , m_bModified(0) + , m_bDeleted(false) + , m_bModified(false) , m_pRegistry(pReg) { } diff --git a/registry/source/keyimpl.hxx b/registry/source/keyimpl.hxx index 189602fa72b8..c0b868f66654 100644 --- a/registry/source/keyimpl.hxx +++ b/registry/source/keyimpl.hxx @@ -97,16 +97,16 @@ public: OUString& resolvedName); bool isDeleted() const - { return m_bDeleted != 0; } + { return m_bDeleted; } void setDeleted (bool bKeyDeleted) - { m_bDeleted = bKeyDeleted ? 1 : 0; } + { m_bDeleted = bKeyDeleted; } bool isModified() const - { return m_bModified != 0; } + { return m_bModified; } void setModified (bool bModified = true) - { m_bModified = bModified ? 1 : 0; } + { m_bModified = bModified; } bool isReadOnly() const { return m_pRegistry->isReadOnly(); } @@ -132,8 +132,8 @@ public: private: sal_uInt32 m_refCount; OUString m_name; - int m_bDeleted:1; - int m_bModified:1; + bool m_bDeleted:1; + bool m_bModified:1; ORegistry* m_pRegistry; }; -- cgit