diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:00:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:24 +0100 |
commit | 9548c0bd597c1d5f1e5fde3118cb6905bd86bf6e (patch) | |
tree | 958b4dffd20417dab63c8d22de26d2577126b3a3 /registry | |
parent | 373de64a3613fc494e9315c083f950b48b6b985e (diff) |
bool improvements
Change-Id: I60fc93beb58c548c7278eaf69f1d0a448b5c27f1
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflread.cxx | 8 | ||||
-rw-r--r-- | registry/source/regimpl.cxx | 12 | ||||
-rw-r--r-- | registry/tools/regcompare.cxx | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 8c88e05a7254..7fffd6e6ed1d 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -235,7 +235,7 @@ public: StringCache* m_pStringCache; ConstantPool(const sal_uInt8* buffer, sal_uInt16 numEntries) - : BlopObject(buffer, 0, sal_False) + : BlopObject(buffer, 0, false) , m_numOfEntries(numEntries) , m_pIndex(NULL) , m_pStringCache(NULL) @@ -582,7 +582,7 @@ public: ConstantPool* m_pCP; FieldList(const sal_uInt8* buffer, sal_uInt16 numEntries, ConstantPool* pCP) - : BlopObject(buffer, 0, sal_False) + : BlopObject(buffer, 0, false) , m_numOfEntries(numEntries) , m_pCP(pCP) { @@ -751,7 +751,7 @@ public: ConstantPool* m_pCP; ReferenceList(const sal_uInt8* buffer, sal_uInt16 numEntries, ConstantPool* pCP) - : BlopObject(buffer, 0, sal_False) + : BlopObject(buffer, 0, false) , m_numOfEntries(numEntries) , m_pCP(pCP) { @@ -845,7 +845,7 @@ public: ConstantPool* m_pCP; MethodList(const sal_uInt8* buffer, sal_uInt16 numEntries, ConstantPool* pCP) - : BlopObject(buffer, 0, sal_False) + : BlopObject(buffer, 0, false) , m_numOfEntries(numEntries) , m_pIndex(NULL) , m_pCP(pCP) diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index f92c3cf456fb..348bdf10e648 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -425,8 +425,8 @@ void dumpType(typereg::Reader const & reader, OString const & indent) { // ORegistry::ORegistry() : m_refCount(1) - , m_readOnly(sal_False) - , m_isOpen(sal_False) + , m_readOnly(false) + , m_isOpen(false) , ROOT( "/" ) { } @@ -462,7 +462,7 @@ RegError ORegistry::initRegistry(const OUString& regName, RegAccessMode accessMo else if (accessMode & REG_READONLY) { sAccessMode = REG_MODE_OPENREAD; - m_readOnly = sal_True; + m_readOnly = true; } if (regName.isEmpty() && @@ -499,7 +499,7 @@ RegError ORegistry::initRegistry(const OUString& regName, RegAccessMode accessMo { m_file = rRegFile; m_name = regName; - m_isOpen = sal_True; + m_isOpen = true; m_openKeyTable[ROOT] = new ORegKey(ROOT, this); eRet = REG_NO_ERROR; @@ -523,7 +523,7 @@ RegError ORegistry::closeRegistry() { (void) releaseKey(m_openKeyTable[ROOT]); m_file.close(); - m_isOpen = sal_False; + m_isOpen = false; return REG_NO_ERROR; } else { @@ -571,7 +571,7 @@ RegError ORegistry::destroyRegistry(const OUString& regName) { releaseKey(m_openKeyTable[ROOT]); m_file.close(); - m_isOpen = sal_False; + m_isOpen = false; if (!m_name.isEmpty()) { diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx index e3cbfedb7475..dd63bff7609e 100644 --- a/registry/tools/regcompare.cxx +++ b/registry/tools/regcompare.cxx @@ -202,7 +202,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs) { return badOption("invalid", (*first).c_str()); } - m_bForceOutput = sal_True; + m_bForceOutput = true; break; } case 'c': @@ -212,7 +212,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs) { return badOption("invalid", (*first).c_str()); } - m_bFullCheck = sal_True; + m_bFullCheck = true; break; } case 't': @@ -222,7 +222,7 @@ bool Options_Impl::initOptions_Impl (std::vector< std::string > & rArgs) { return badOption("invalid", (*first).c_str()); } - m_bUnoTypeCheck = sal_True; + m_bUnoTypeCheck = true; break; } case 'u': |