summaryrefslogtreecommitdiff
path: root/include/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-15 14:52:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-17 17:55:17 +0100
commit20726ae6644236481cd15e2156935ba842cf88fd (patch)
treeaa16ebb9e654c0c774b969afe93850b594b05fa9 /include/registry
parent07d3807e999445c87553e7a6c5876d07ca431737 (diff)
registry: sal_Bool -> bool
Change-Id: Iaf118eca7a7b24945afbc1959ad78c712e4a299b
Diffstat (limited to 'include/registry')
-rw-r--r--include/registry/reflread.hxx8
-rw-r--r--include/registry/registry.hxx30
2 files changed, 19 insertions, 19 deletions
diff --git a/include/registry/reflread.hxx b/include/registry/reflread.hxx
index b044bb75011f..a26df02ecd3c 100644
--- a/include/registry/reflread.hxx
+++ b/include/registry/reflread.hxx
@@ -112,7 +112,7 @@ public:
*/
inline RegistryTypeReader(const sal_uInt8* buffer,
sal_uInt32 bufferLen,
- sal_Bool copyData);
+ bool copyData);
/// Copy constructcor
inline RegistryTypeReader(const RegistryTypeReader& toCopy);
@@ -124,7 +124,7 @@ public:
inline RegistryTypeReader& operator == (const RegistryTypeReader& toAssign);
/// checks if the registry type reader points to a valid Api.
- inline sal_Bool isValid() const;
+ inline bool isValid() const;
/** @deprecated
returns the minor version number.
@@ -315,7 +315,7 @@ protected:
inline RegistryTypeReader::RegistryTypeReader(const sal_uInt8* buffer,
sal_uInt32 bufferLen,
- sal_Bool copyData)
+ bool copyData)
: m_pApi(initRegistryTypeReader_Api())
, m_hImpl(NULL)
{
@@ -347,7 +347,7 @@ inline RegistryTypeReader& RegistryTypeReader::operator == (const RegistryTypeRe
inline sal_uInt16 RegistryTypeReader::getMinorVersion() const
{ return m_pApi->getMinorVersion(m_hImpl); }
-inline sal_Bool RegistryTypeReader::isValid() const
+inline bool RegistryTypeReader::isValid() const
{ return (m_hImpl != NULL); }
inline sal_uInt16 RegistryTypeReader::getMajorVersion() const
diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx
index d277dba559b8..6b3438cad3f6 100644
--- a/include/registry/registry.hxx
+++ b/include/registry/registry.hxx
@@ -110,13 +110,13 @@ public:
inline Registry& operator = (const Registry& toAssign);
/// checks if the registry points to a valid registry data file.
- inline sal_Bool isValid() const;
+ inline bool isValid() const;
/** returns the access mode of the registry.
@return TRUE if the access mode is readonly else FALSE.
*/
- inline sal_Bool isReadOnly() const;
+ inline bool isReadOnly() const;
/** opens the root key of the registry.
@@ -204,8 +204,8 @@ public:
inline RegError mergeKey(RegistryKey& rKey,
const rtl::OUString& keyName,
const rtl::OUString& regFileName,
- sal_Bool bWarnings = sal_False,
- sal_Bool bReport = sal_False);
+ bool bWarnings = false,
+ bool bReport = false);
/** This function reports the complete registry information of a key and all of its subkeys.
@@ -408,13 +408,13 @@ public:
inline RegistryKey& operator = (const RegistryKey& toAssign);
/// checks if the key points to a valid registry key.
- inline sal_Bool isValid() const;
+ inline bool isValid() const;
/** returns the access mode of the key.
@return TRUE if access mode is read only else FALSE.
*/
- inline sal_Bool isReadOnly() const;
+ inline bool isReadOnly() const;
/// returns the full qualified name of the key beginning with the rootkey.
inline rtl::OUString getName();
@@ -634,7 +634,7 @@ public:
@return REG_NO_ERROR if succeeds else an error code.
*/
inline RegError getResolvedKeyName(const rtl::OUString& keyName,
- sal_Bool firstLinkOnly,
+ bool firstLinkOnly,
rtl::OUString& rResolvedName) const;
/// returns the name of the registry in which the key is defined.
@@ -823,15 +823,15 @@ inline RegistryKey& RegistryKey::operator = (const RegistryKey& toAssign)
return *this;
}
-inline sal_Bool RegistryKey::isValid() const
+inline bool RegistryKey::isValid() const
{ return (m_hImpl != NULL); }
-inline sal_Bool RegistryKey::isReadOnly() const
+inline bool RegistryKey::isReadOnly() const
{
if (m_registry.isValid())
return (m_registry.m_pApi)->isKeyReadOnly(m_hImpl);
else
- return sal_False;
+ return false;
}
inline rtl::OUString RegistryKey::getName()
@@ -1125,7 +1125,7 @@ inline RegError RegistryKey::getLinkTarget(const rtl::OUString& linkName,
inline RegError RegistryKey::getResolvedKeyName(const rtl::OUString& keyName,
- sal_Bool firstLinkOnly,
+ bool firstLinkOnly,
rtl::OUString& rResolvedName) const
{
if (m_registry.isValid())
@@ -1181,10 +1181,10 @@ inline Registry& Registry::operator = (const Registry& toAssign)
return *this;
}
-inline sal_Bool Registry::isValid() const
+inline bool Registry::isValid() const
{ return ( m_hImpl != NULL ); }
-inline sal_Bool Registry::isReadOnly() const
+inline bool Registry::isReadOnly() const
{ return m_pApi->isReadOnly(m_hImpl); }
inline RegError Registry::openRootKey(RegistryKey& rRootKey)
@@ -1244,8 +1244,8 @@ inline RegError Registry::saveKey(RegistryKey& rKey,
inline RegError Registry::mergeKey(RegistryKey& rKey,
const rtl::OUString& keyName,
const rtl::OUString& regFileName,
- sal_Bool bWarnings,
- sal_Bool bReport)
+ bool bWarnings,
+ bool bReport)
{ return m_pApi->mergeKey(m_hImpl, rKey.m_hImpl, keyName.pData, regFileName.pData, bWarnings, bReport); }
inline RegError Registry::dumpRegistry(RegistryKey& rKey)