diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/confignode.cxx | 7 | ||||
-rw-r--r-- | unotools/source/config/configvaluecontainer.cxx | 10 |
2 files changed, 3 insertions, 14 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx index 89c38fa74790..4d0eec963c11 100644 --- a/unotools/source/config/confignode.cxx +++ b/unotools/source/config/confignode.cxx @@ -74,7 +74,7 @@ namespace utl startComponentListening(xConfigNodeComp); if (isValid()) - setEscape(isSetNode()); + m_bEscapeNames = isSetNode() && Reference< XStringEscape >::query(m_xDirectAccess).is(); } OConfigurationNode::OConfigurationNode(const OConfigurationNode& _rSource) @@ -303,11 +303,6 @@ namespace utl return OConfigurationNode(); } - void OConfigurationNode::setEscape(bool _bEnable) - { - m_bEscapeNames = _bEnable && Reference< XStringEscape >::query(m_xDirectAccess).is(); - } - bool OConfigurationNode::isSetNode() const { bool bIsSet = false; diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx index 873dcfef85d7..312751089213 100644 --- a/unotools/source/config/configvaluecontainer.cxx +++ b/unotools/source/config/configvaluecontainer.cxx @@ -271,20 +271,14 @@ namespace utl ); } - void OConfigurationValueContainer::write() + void OConfigurationValueContainer::commit() { - // collect the current values in the exchange locations + // write the current values in the exchange locations std::for_each( m_pImpl->aAccessors.begin(), m_pImpl->aAccessors.end(), UpdateToConfig( m_pImpl->aConfigRoot, m_pImpl->rMutex ) ); - } - - void OConfigurationValueContainer::commit() - { - // write the current values in the exchange locations - write(); // commit the changes done m_pImpl->aConfigRoot.commit( ); |