diff options
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r-- | configmgr/source/access.cxx | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index b8d174b4b086..0a8d42beb21f 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -239,7 +239,7 @@ OUString Access::getImplementationName() assert(thisIs(IS_ANY)); osl::MutexGuard g(*lock_); checkLocalizedPropertyAccess(); - return "org.openoffice-configmgr::Access"; + return u"org.openoffice-configmgr::Access"_ustr; } sal_Bool Access::supportsService(OUString const & ServiceName) @@ -285,7 +285,7 @@ void Access::dispose() { checkLocalizedPropertyAccess(); if (getParentAccess().is()) { throw css::uno::RuntimeException( - "configmgr dispose inappropriate Access", + u"configmgr dispose inappropriate Access"_ustr, getXWeak()); } if (disposed_) { @@ -307,7 +307,7 @@ void Access::addEventListener( checkLocalizedPropertyAccess(); if (!xListener.is()) { throw css::uno::RuntimeException( - "null listener", getXWeak()); + u"null listener"_ustr, getXWeak()); } if (!disposed_) { disposeListeners_.insert(xListener); @@ -351,7 +351,7 @@ css::uno::Type Access::getElementType() { default: assert(false); throw css::uno::RuntimeException( - "this cannot happen", getXWeak()); + u"this cannot happen"_ustr, getXWeak()); } } @@ -535,8 +535,8 @@ void Access::replaceByHierarchicalName( break; case Node::KIND_SET: throw css::lang::IllegalArgumentException( - ("configmgr::Access::replaceByHierarchicalName does not" - " currently support set members"), + (u"configmgr::Access::replaceByHierarchicalName does not" + " currently support set members"_ustr), getXWeak(), 0); case Node::KIND_ROOT: throw css::lang::IllegalArgumentException( @@ -561,7 +561,7 @@ void Access::addContainerListener( checkLocalizedPropertyAccess(); if (!xListener.is()) { throw css::uno::RuntimeException( - "null listener", getXWeak()); + u"null listener"_ustr, getXWeak()); } if (!disposed_) { containerListeners_.insert(xListener); @@ -654,7 +654,7 @@ OUString Access::composeHierarchicalName( checkLocalizedPropertyAccess(); if (aRelativeName.isEmpty() || aRelativeName[0] == '/') { throw css::lang::IllegalArgumentException( - "configmgr composeHierarchicalName inappropriate relative name", + u"configmgr composeHierarchicalName inappropriate relative name"_ustr, getXWeak(), -1); } OUStringBuffer path(getRelativePathRepresentation()); @@ -729,7 +729,7 @@ void Access::setName(OUString const & aName) // renaming a property could only work for an extension property, // but a localized property is never an extension property throw css::uno::RuntimeException( - "configmgr setName inappropriate node", + u"configmgr setName inappropriate node"_ustr, getXWeak()); default: assert(false); // this cannot happen @@ -763,7 +763,7 @@ void Access::setPropertyValue( osl::MutexGuard g(*lock_); if (!getRootAccess()->isUpdate()) { throw css::uno::RuntimeException( - "configmgr setPropertyValue on non-update access", + u"configmgr setPropertyValue on non-update access"_ustr, getXWeak()); } Modifications localMods; @@ -798,7 +798,7 @@ void Access::addPropertyChangeListener( osl::MutexGuard g(*lock_); if (!xListener.is()) { throw css::uno::RuntimeException( - "null listener", getXWeak()); + u"null listener"_ustr, getXWeak()); } checkKnownProperty(aPropertyName); if (!disposed_) { @@ -843,7 +843,7 @@ void Access::addVetoableChangeListener( osl::MutexGuard g(*lock_); if (!aListener.is()) { throw css::uno::RuntimeException( - "null listener", getXWeak()); + u"null listener"_ustr, getXWeak()); } checkKnownProperty(PropertyName); if (!disposed_) { @@ -889,20 +889,20 @@ void Access::setPropertyValues( osl::MutexGuard g(*lock_); if (!getRootAccess()->isUpdate()) { throw css::uno::RuntimeException( - "configmgr setPropertyValues on non-update access", + u"configmgr setPropertyValues on non-update access"_ustr, getXWeak()); } if (aPropertyNames.getLength() != aValues.getLength()) { throw css::lang::IllegalArgumentException( - ("configmgr setPropertyValues: aPropertyNames/aValues of" - " different length"), + (u"configmgr setPropertyValues: aPropertyNames/aValues of" + " different length"_ustr), getXWeak(), -1); } Modifications localMods; for (sal_Int32 i = 0; i < aPropertyNames.getLength(); ++i) { if (!setChildProperty(aPropertyNames[i], aValues[i], &localMods)) { throw css::lang::IllegalArgumentException( - "configmgr setPropertyValues inappropriate property name", + u"configmgr setPropertyValues inappropriate property name"_ustr, getXWeak(), -1); } } @@ -922,7 +922,7 @@ css::uno::Sequence< css::uno::Any > Access::getPropertyValues( { if (!getByNameFast(aPropertyNames[i], aValsRange[i])) throw css::uno::RuntimeException( - "configmgr getPropertyValues inappropriate property name", + u"configmgr getPropertyValues inappropriate property name"_ustr, getXWeak()); } @@ -939,7 +939,7 @@ void Access::addPropertiesChangeListener( osl::MutexGuard g(*lock_); if (!xListener.is()) { throw css::uno::RuntimeException( - "null listener", getXWeak()); + u"null listener"_ustr, getXWeak()); } if (!disposed_) { propertiesChangeListeners_.insert(xListener); @@ -998,7 +998,7 @@ void Access::setHierarchicalPropertyValue( osl::MutexGuard g(*lock_); if (!getRootAccess()->isUpdate()) { throw css::uno::RuntimeException( - "configmgr setHierarchicalPropertyName on non-update access", + u"configmgr setHierarchicalPropertyName on non-update access"_ustr, getXWeak()); } rtl::Reference< ChildAccess > child( @@ -1040,13 +1040,13 @@ void Access::setHierarchicalPropertyValues( osl::MutexGuard g(*lock_); if (!getRootAccess()->isUpdate()) { throw css::uno::RuntimeException( - "configmgr setPropertyValues on non-update access", + u"configmgr setPropertyValues on non-update access"_ustr, getXWeak()); } if (aHierarchicalPropertyNames.getLength() != Values.getLength()) { throw css::lang::IllegalArgumentException( - ("configmgr setHierarchicalPropertyValues:" - " aHierarchicalPropertyNames/Values of different length"), + (u"configmgr setHierarchicalPropertyValues:" + " aHierarchicalPropertyNames/Values of different length"_ustr), getXWeak(), -1); } Modifications localMods; @@ -1055,8 +1055,8 @@ void Access::setHierarchicalPropertyValues( getSubChild(aHierarchicalPropertyNames[i])); if (!child.is()) { throw css::lang::IllegalArgumentException( - ("configmgr setHierarchicalPropertyValues inappropriate" - " property name"), + (u"configmgr setHierarchicalPropertyValues inappropriate" + " property name"_ustr), getXWeak(), -1); } child->checkFinalized(); @@ -1080,8 +1080,8 @@ css::uno::Sequence< css::uno::Any > Access::getHierarchicalPropertyValues( getSubChild(aHierarchicalPropertyNames[i])); if (!child.is()) { throw css::lang::IllegalArgumentException( - ("configmgr getHierarchicalPropertyValues inappropriate" - " hierarchical property name"), + (u"configmgr getHierarchicalPropertyValues inappropriate" + " hierarchical property name"_ustr), getXWeak(), -1); } aValsRange[i] = child->asValue(); @@ -1268,8 +1268,8 @@ css::uno::Reference< css::uno::XInterface > Access::createInstanceWithArguments( assert(thisIs(IS_SET|IS_UPDATE)); if (aArguments.hasElements()) { throw css::uno::Exception( - ("configuration SimpleSetUpdate createInstanceWithArguments" - " must not specify any arguments"), + (u"configuration SimpleSetUpdate createInstanceWithArguments" + " must not specify any arguments"_ustr), getXWeak()); } return createInstance(); @@ -1421,7 +1421,7 @@ void Access::checkLocalizedPropertyAccess() { !Components::allLocales(getRootAccess()->getLocale())) { throw css::uno::RuntimeException( - "configmgr Access to specialized LocalizedPropertyNode", + u"configmgr Access to specialized LocalizedPropertyNode"_ustr, getXWeak()); } } @@ -1509,15 +1509,15 @@ rtl::Reference< ChildAccess > Access::getChild(OUString const & name) { } // Defaults are the "en-US" locale, the "en" locale, the empty string locale, the first child (if // any, and if the property is non-nillable), or a null ChildAccess, in that order: - rtl::Reference< ChildAccess > child(getChild("en-US")); + rtl::Reference< ChildAccess > child(getChild(u"en-US"_ustr)); if (child.is()) { return child; } - child = getChild("en"); + child = getChild(u"en"_ustr); if (child.is()) { return child; } - child = getChild(""); + child = getChild(u""_ustr); if (child.is()) { return child; } @@ -1608,7 +1608,7 @@ void Access::checkValue(css::uno::Any const & value, Type type, bool nillable) { } if (!ok) { throw css::lang::IllegalArgumentException( - "configmgr inappropriate property value", + u"configmgr inappropriate property value"_ustr, getXWeak(), -1); } } @@ -1744,7 +1744,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - j = propertyChangeListeners_.find(""); + j = propertyChangeListeners_.find(u""_ustr); if (j != propertyChangeListeners_.end()) { for (auto const& propertyChangeListenerElement : j->second) { @@ -1822,7 +1822,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - j = propertyChangeListeners_.find(""); + j = propertyChangeListeners_.find(u""_ustr); if (j != propertyChangeListeners_.end()) { for (auto const& propertyChangeListenerElement : j->second) { @@ -1941,7 +1941,7 @@ void Access::initBroadcasterAndChanges( css::uno::Any())); } } - j = propertyChangeListeners_.find(""); + j = propertyChangeListeners_.find(u""_ustr); if (j != propertyChangeListeners_.end()) { for (auto const& propertyChangeListenerElement : j->second) { @@ -2224,7 +2224,7 @@ css::beans::Property Access::asProperty() { void Access::checkFinalized() { if (isFinalized()) { throw css::lang::IllegalArgumentException( - "configmgr modification of finalized item", + u"configmgr modification of finalized item"_ustr, getXWeak(), -1); } } @@ -2267,7 +2267,7 @@ rtl::Reference< ChildAccess > Access::getFreeSetMember( freeAcc->getRootAccess() != getRootAccess())) { throw css::lang::IllegalArgumentException( - "configmgr inappropriate set element", + u"configmgr inappropriate set element"_ustr, getXWeak(), 1); } assert(dynamic_cast< SetNode * >(getNode().get()) != nullptr); @@ -2275,7 +2275,7 @@ rtl::Reference< ChildAccess > Access::getFreeSetMember( freeAcc->getNode()->getTemplateName())) { throw css::lang::IllegalArgumentException( - "configmgr inappropriate set element", + u"configmgr inappropriate set element"_ustr, getXWeak(), 1); } return freeAcc; |