summaryrefslogtreecommitdiff
path: root/unotools/source/config/confignode.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-19 12:30:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-19 12:47:07 +0100
commit973b47a336b239cc92f1789013d28e5bd55f859f (patch)
tree6481f2803208409896aecf6745239cf07953baab /unotools/source/config/confignode.cxx
parent9ad3fc29dd98167c35fcb599da0b4e764ddf04dd (diff)
unotools: sal_Bool -> bool
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
Diffstat (limited to 'unotools/source/config/confignode.cxx')
-rw-r--r--unotools/source/config/confignode.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index 2f6550a66e2e..ac1966491dae 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -54,7 +54,7 @@ namespace utl
//========================================================================
//------------------------------------------------------------------------
OConfigurationNode::OConfigurationNode(const Reference< XInterface >& _rxNode )
- :m_bEscapeNames(sal_False)
+ :m_bEscapeNames(false)
{
OSL_ENSURE(_rxNode.is(), "OConfigurationNode::OConfigurationNode: invalid node interface!");
if (_rxNode.is())
@@ -208,7 +208,7 @@ namespace utl
}
//------------------------------------------------------------------------
- sal_Bool OConfigurationNode::removeNode(const OUString& _rName) const throw()
+ bool OConfigurationNode::removeNode(const OUString& _rName) const throw()
{
OSL_ENSURE(m_xContainerAccess.is(), "OConfigurationNode::removeNode: object is invalid!");
if (m_xContainerAccess.is())
@@ -217,7 +217,7 @@ namespace utl
{
OUString sName = normalizeName(_rName, NO_CALLER);
m_xContainerAccess->removeByName(sName);
- return sal_True;
+ return true;
}
catch (NoSuchElementException&)
{
@@ -238,7 +238,7 @@ namespace utl
OSL_FAIL("OConfigurationNode::removeNode: caught a generic exception!");
}
}
- return sal_False;
+ return false;
}
//------------------------------------------------------------------------
OConfigurationNode OConfigurationNode::insertNode(const OUString& _rName,const Reference< XInterface >& _xNode) const throw()
@@ -329,15 +329,15 @@ namespace utl
}
//------------------------------------------------------------------------
- void OConfigurationNode::setEscape(sal_Bool _bEnable)
+ void OConfigurationNode::setEscape(bool _bEnable)
{
m_bEscapeNames = _bEnable && Reference< XStringEscape >::query(m_xDirectAccess).is();
}
//------------------------------------------------------------------------
- sal_Bool OConfigurationNode::isSetNode() const
+ bool OConfigurationNode::isSetNode() const
{
- sal_Bool bIsSet = sal_False;
+ bool bIsSet = false;
Reference< XServiceInfo > xSI(m_xHierarchyAccess, UNO_QUERY);
if (xSI.is())
{
@@ -347,7 +347,7 @@ namespace utl
return bIsSet;
}
- sal_Bool OConfigurationNode::hasByHierarchicalName( const OUString& _rName ) const throw()
+ bool OConfigurationNode::hasByHierarchicalName( const OUString& _rName ) const throw()
{
OSL_ENSURE( m_xHierarchyAccess.is(), "OConfigurationNode::hasByHierarchicalName: no hierarchy access!" );
try
@@ -361,11 +361,11 @@ namespace utl
catch(Exception&)
{
}
- return sal_False;
+ return false;
}
//------------------------------------------------------------------------
- sal_Bool OConfigurationNode::hasByName(const OUString& _rName) const throw()
+ bool OConfigurationNode::hasByName(const OUString& _rName) const throw()
{
OSL_ENSURE(m_xDirectAccess.is(), "OConfigurationNode::hasByName: object is invalid!");
try
@@ -377,13 +377,13 @@ namespace utl
catch(Exception&)
{
}
- return sal_False;
+ return false;
}
//------------------------------------------------------------------------
- sal_Bool OConfigurationNode::setNodeValue(const OUString& _rPath, const Any& _rValue) const throw()
+ bool OConfigurationNode::setNodeValue(const OUString& _rPath, const Any& _rValue) const throw()
{
- sal_Bool bResult = false;
+ bool bResult = false;
OSL_ENSURE(m_xReplaceAccess.is(), "OConfigurationNode::setNodeValue: object is invalid!");
if (m_xReplaceAccess.is())
@@ -553,29 +553,29 @@ namespace utl
}
//------------------------------------------------------------------------
- sal_Bool OConfigurationTreeRoot::commit() const throw()
+ bool OConfigurationTreeRoot::commit() const throw()
{
OSL_ENSURE(isValid(), "OConfigurationTreeRoot::commit: object is invalid!");
if (!isValid())
- return sal_False;
+ return false;
OSL_ENSURE(m_xCommitter.is(), "OConfigurationTreeRoot::commit: I'm a readonly node!");
if (!m_xCommitter.is())
- return sal_False;
+ return false;
try
{
m_xCommitter->commitChanges();
- return sal_True;
+ return true;
}
catch(const Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
- return sal_False;
+ return false;
}
//------------------------------------------------------------------------
- OConfigurationTreeRoot OConfigurationTreeRoot::createWithProvider(const Reference< XMultiServiceFactory >& _rxConfProvider, const OUString& _rPath, sal_Int32 _nDepth, CREATION_MODE _eMode, sal_Bool _bLazyWrite)
+ OConfigurationTreeRoot OConfigurationTreeRoot::createWithProvider(const Reference< XMultiServiceFactory >& _rxConfProvider, const OUString& _rPath, sal_Int32 _nDepth, CREATION_MODE _eMode, bool _bLazyWrite)
{
Reference< XInterface > xRoot( lcl_createConfigurationRoot(
_rxConfProvider, _rPath, _eMode != CM_READONLY, _nDepth, _bLazyWrite ) );
@@ -585,14 +585,14 @@ namespace utl
}
//------------------------------------------------------------------------
- OConfigurationTreeRoot OConfigurationTreeRoot::createWithComponentContext( const Reference< XComponentContext >& _rxContext, const OUString& _rPath, sal_Int32 _nDepth, CREATION_MODE _eMode, sal_Bool _bLazyWrite )
+ OConfigurationTreeRoot OConfigurationTreeRoot::createWithComponentContext( const Reference< XComponentContext >& _rxContext, const OUString& _rPath, sal_Int32 _nDepth, CREATION_MODE _eMode, bool _bLazyWrite )
{
return createWithProvider( lcl_getConfigProvider( _rxContext ), _rPath, _nDepth, _eMode, _bLazyWrite );
}
//------------------------------------------------------------------------
OConfigurationTreeRoot OConfigurationTreeRoot::tryCreateWithComponentContext( const Reference< XComponentContext >& rxContext,
- const OUString& _rPath, sal_Int32 _nDepth , CREATION_MODE _eMode , sal_Bool _bLazyWrite )
+ const OUString& _rPath, sal_Int32 _nDepth , CREATION_MODE _eMode , bool _bLazyWrite )
{
OSL_ENSURE( rxContext.is(), "OConfigurationTreeRoot::tryCreateWithComponentContext: invalid XComponentContext!" );
try