Kaydet (Commit) e7641433 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

convert int to bool

Change-Id: I4fb95c90dc1f188f8088ba1e4b7bfd0ebc59eb60
üst 439354a0
......@@ -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)
{
}
......
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment