summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-30 08:20:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-05-02 17:02:28 +0200
commit10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch)
tree7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /unotools
parenta9243e626193ab4efe3a618413886773336a38e6 (diff)
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/confignode.cxx24
-rw-r--r--unotools/source/ucbhelper/ucbhelper.cxx2
2 files changed, 13 insertions, 13 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index 8c6b21000fae..f7722d6fdf25 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -182,7 +182,7 @@ namespace utl
return sName;
}
- Sequence< OUString > OConfigurationNode::getNodeNames() const throw()
+ Sequence< OUString > OConfigurationNode::getNodeNames() const noexcept
{
OSL_ENSURE(m_xDirectAccess.is(), "OConfigurationNode::getNodeNames: object is invalid!");
Sequence< OUString > aReturn;
@@ -204,7 +204,7 @@ namespace utl
return aReturn;
}
- bool OConfigurationNode::removeNode(const OUString& _rName) const throw()
+ bool OConfigurationNode::removeNode(const OUString& _rName) const noexcept
{
OSL_ENSURE(m_xContainerAccess.is(), "OConfigurationNode::removeNode: object is invalid!");
if (m_xContainerAccess.is())
@@ -227,7 +227,7 @@ namespace utl
return false;
}
- OConfigurationNode OConfigurationNode::insertNode(const OUString& _rName,const Reference< XInterface >& _xNode) const throw()
+ OConfigurationNode OConfigurationNode::insertNode(const OUString& _rName,const Reference< XInterface >& _xNode) const noexcept
{
if(_xNode.is())
{
@@ -252,7 +252,7 @@ namespace utl
return OConfigurationNode();
}
- OConfigurationNode OConfigurationNode::createNode(const OUString& _rName) const throw()
+ OConfigurationNode OConfigurationNode::createNode(const OUString& _rName) const noexcept
{
Reference< XSingleServiceFactory > xChildFactory(m_xContainerAccess, UNO_QUERY);
OSL_ENSURE(xChildFactory.is(), "OConfigurationNode::createNode: object is invalid or read-only!");
@@ -274,7 +274,7 @@ namespace utl
return OConfigurationNode();
}
- OConfigurationNode OConfigurationNode::openNode(const OUString& _rPath) const throw()
+ OConfigurationNode OConfigurationNode::openNode(const OUString& _rPath) const noexcept
{
OSL_ENSURE(m_xDirectAccess.is(), "OConfigurationNode::openNode: object is invalid!");
OSL_ENSURE(m_xHierarchyAccess.is(), "OConfigurationNode::openNode: object is invalid!");
@@ -324,7 +324,7 @@ namespace utl
return bIsSet;
}
- bool OConfigurationNode::hasByHierarchicalName( const OUString& _rName ) const throw()
+ bool OConfigurationNode::hasByHierarchicalName( const OUString& _rName ) const noexcept
{
OSL_ENSURE( m_xHierarchyAccess.is(), "OConfigurationNode::hasByHierarchicalName: no hierarchy access!" );
try
@@ -341,7 +341,7 @@ namespace utl
return false;
}
- bool OConfigurationNode::hasByName(const OUString& _rName) const throw()
+ bool OConfigurationNode::hasByName(const OUString& _rName) const noexcept
{
OSL_ENSURE(m_xDirectAccess.is(), "OConfigurationNode::hasByName: object is invalid!");
try
@@ -356,7 +356,7 @@ namespace utl
return false;
}
- bool OConfigurationNode::setNodeValue(const OUString& _rPath, const Any& _rValue) const throw()
+ bool OConfigurationNode::setNodeValue(const OUString& _rPath, const Any& _rValue) const noexcept
{
bool bResult = false;
@@ -403,7 +403,7 @@ namespace utl
return bResult;
}
- Any OConfigurationNode::getNodeValue(const OUString& _rPath) const throw()
+ Any OConfigurationNode::getNodeValue(const OUString& _rPath) const noexcept
{
OSL_ENSURE(m_xDirectAccess.is(), "OConfigurationNode::hasByName: object is invalid!");
OSL_ENSURE(m_xHierarchyAccess.is(), "OConfigurationNode::hasByName: object is invalid!");
@@ -427,7 +427,7 @@ namespace utl
return aReturn;
}
- void OConfigurationNode::clear() throw()
+ void OConfigurationNode::clear() noexcept
{
m_xHierarchyAccess.clear();
m_xDirectAccess.clear();
@@ -500,13 +500,13 @@ namespace utl
}
}
- void OConfigurationTreeRoot::clear() throw()
+ void OConfigurationTreeRoot::clear() noexcept
{
OConfigurationNode::clear();
m_xCommitter.clear();
}
- bool OConfigurationTreeRoot::commit() const throw()
+ bool OConfigurationTreeRoot::commit() const noexcept
{
OSL_ENSURE(isValid(), "OConfigurationTreeRoot::commit: object is invalid!");
if (!isValid())
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx
index aaf8411e2a38..993cf8c8908f 100644
--- a/unotools/source/ucbhelper/ucbhelper.cxx
+++ b/unotools/source/ucbhelper/ucbhelper.cxx
@@ -393,7 +393,7 @@ bool utl::UCBContentHelper::EqualURLs(
bool utl::UCBContentHelper::ensureFolder(
const css::uno::Reference< css::uno::XComponentContext >& xCtx,
const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv,
- const OUString& rFolder, ucbhelper::Content & result) throw()
+ const OUString& rFolder, ucbhelper::Content & result) noexcept
{
try
{