summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-17 00:43:47 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-17 05:15:19 +0200
commite7641433c0079a35652893ab15ae6997e3e3a933 (patch)
treeaa8d371663cf80b990a08d7002a9eb1613ea6344 /registry
parent439354a0b4641bc2ee8e403e8b9e84ac4a0ec6a9 (diff)
convert int to bool
Change-Id: I4fb95c90dc1f188f8088ba1e4b7bfd0ebc59eb60
Diffstat (limited to 'registry')
-rw-r--r--registry/source/keyimpl.cxx4
-rw-r--r--registry/source/keyimpl.hxx12
2 files changed, 8 insertions, 8 deletions
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;
};