From f1d83ac45f08270f7f2dd7128056effd0251dc5e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 27 Jan 2017 16:09:54 +0200 Subject: loplugin:stringconstant check for unnecessary OUString constructor.. ..calls when creating exceptions Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe Reviewed-on: https://gerrit.libreoffice.org/33617 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/invocation/invocation.cxx | 2 +- stoc/source/javavm/javavm.cxx | 72 +++++++++--------- stoc/source/simpleregistry/simpleregistry.cxx | 104 +++++++++++++------------- 3 files changed, 89 insertions(+), 89 deletions(-) (limited to 'stoc') diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 6622441a8cd3..fea9e93cd43b 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -887,7 +887,7 @@ InvocationInfo SAL_CALL Invocation_Impl::getInfoForName( const OUString& aName, if( !bFound ) { throw IllegalArgumentException( - OUString( "Unknown name, getExactName() failed!" ), + "Unknown name, getExactName() failed!", static_cast(static_cast(this)), 0 ); } return aRetInfo; diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 8627f8583d6c..d7b0c885b676 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -355,13 +355,13 @@ void getDefaultLocaleFromConfig( xSMgr->createInstanceWithContext( "com.sun.star.configuration.ConfigurationRegistry", xCtx ); if(!xConfRegistry.is()) throw css::uno::RuntimeException( - OUString("javavm.cxx: couldn't get ConfigurationRegistry"), nullptr); + "javavm.cxx: couldn't get ConfigurationRegistry", nullptr); css::uno::Reference xConfRegistry_simple( xConfRegistry, css::uno::UNO_QUERY); if(!xConfRegistry_simple.is()) throw css::uno::RuntimeException( - OUString("javavm.cxx: couldn't get ConfigurationRegistry"), nullptr); + "javavm.cxx: couldn't get ConfigurationRegistry", nullptr); xConfRegistry_simple->open("org.openoffice.Setup", true, false); css::uno::Reference xRegistryRootKey = xConfRegistry_simple->getRootKey(); @@ -461,13 +461,13 @@ void getJavaPropsFromSafetySettings( xCtx); if(!xConfRegistry.is()) throw css::uno::RuntimeException( - OUString("javavm.cxx: couldn't get ConfigurationRegistry"), nullptr); + "javavm.cxx: couldn't get ConfigurationRegistry", nullptr); css::uno::Reference xConfRegistry_simple( xConfRegistry, css::uno::UNO_QUERY); if(!xConfRegistry_simple.is()) throw css::uno::RuntimeException( - OUString("javavm.cxx: couldn't get ConfigurationRegistry"), nullptr); + "javavm.cxx: couldn't get ConfigurationRegistry", nullptr); xConfRegistry_simple->open( "org.openoffice.Office.Java", @@ -624,7 +624,7 @@ JavaVirtualMachine::initialize(css::uno::Sequence< css::uno::Any > const & OUString(), static_cast< cppu::OWeakObject * >(this)); if (m_xUnoVirtualMachine.is()) throw css::uno::RuntimeException( - OUString("bad call to initialize"), + "bad call to initialize", static_cast< cppu::OWeakObject * >(this)); css::beans::NamedValue val; if (rArguments.getLength() == 1 && (rArguments[0] >>= val) && val.Name == "UnoVirtualMachine" ) @@ -652,19 +652,19 @@ JavaVirtualMachine::initialize(css::uno::Sequence< css::uno::Any > const & m_xUnoVirtualMachine = new jvmaccess::UnoVirtualMachine(vm, nullptr); } catch (jvmaccess::UnoVirtualMachine::CreationException &) { throw css::uno::RuntimeException( - OUString("jvmaccess::UnoVirtualMachine::CreationException"), + "jvmaccess::UnoVirtualMachine::CreationException", static_cast< cppu::OWeakObject * >(this)); } } } if (!m_xUnoVirtualMachine.is()) { throw css::lang::IllegalArgumentException( - OUString("sequence of exactly one any containing either (a) a" - " com.sun.star.beans.NamedValue with Name" - " \"UnoVirtualMachine\" and Value a hyper representing a" - " non-null pointer to a jvmaccess:UnoVirtualMachine, or (b)" - " a hyper representing a non-null pointer to a" - " jvmaccess::VirtualMachine required"), + "sequence of exactly one any containing either (a) a" + " com.sun.star.beans.NamedValue with Name" + " \"UnoVirtualMachine\" and Value a hyper representing a" + " non-null pointer to a jvmaccess:UnoVirtualMachine, or (b)" + " a hyper representing a non-null pointer to a" + " jvmaccess::VirtualMachine required", static_cast< cppu::OWeakObject * >(this), 0); } m_xVirtualMachine = m_xUnoVirtualMachine->getVirtualMachine(); @@ -776,8 +776,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) //%PRODUCTNAME requires a Java runtime environment (JRE) to perform this task. //Please install a JRE and restart %PRODUCTNAME. css::java::JavaNotFoundException exc( - OUString("JavaVirtualMachine::getJavaVM failed because" - " No suitable JRE found!"), + "JavaVirtualMachine::getJavaVM failed because" + " No suitable JRE found!", static_cast< cppu::OWeakObject * >(this)); askForRetry(css::uno::makeAny(exc)); return css::uno::Any(); @@ -786,8 +786,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) { //An unexpected error occurred throw css::uno::RuntimeException( - OUString("[JavaVirtualMachine]:An unexpected error occurred" - " while searching for a Java!"), nullptr); + "[JavaVirtualMachine]:An unexpected error occurred" + " while searching for a Java!", nullptr); } } case JFW_E_INVALID_SETTINGS: @@ -797,8 +797,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) // - Options - %PRODUCTNAME - Java, select the Java runtime environment // you want to have used by %PRODUCTNAME. css::java::InvalidJavaSettingsException exc( - OUString("JavaVirtualMachine::getJavaVM failed because" - " Java settings have changed!"), + "JavaVirtualMachine::getJavaVM failed because" + " Java settings have changed!", static_cast< cppu::OWeakObject * >(this)); askForRetry(css::uno::makeAny(exc)); return css::uno::Any(); @@ -810,7 +810,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) //this task. However, use of a JRE has been disabled. Do you want to //enable the use of a JRE now? css::java::JavaDisabledException exc( - OUString("JavaVirtualMachine::getJavaVM failed because Java is disabled!"), + "JavaVirtualMachine::getJavaVM failed because Java is disabled!", static_cast< cppu::OWeakObject * >(this)); if( ! askForRetry(css::uno::makeAny(exc))) return css::uno::Any(); @@ -847,7 +847,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) //is defective. Please select another version or install a new JRE //and select it under Tools - Options - %PRODUCTNAME - Java. css::java::JavaVMCreationFailureException exc( - OUString("JavaVirtualMachine::getJavaVM failed because Java is defective!"), + "JavaVirtualMachine::getJavaVM failed because Java is defective!", static_cast< cppu::OWeakObject * >(this), 0); askForRetry(css::uno::makeAny(exc)); return css::uno::Any(); @@ -864,8 +864,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) //For the selected Java runtime environment to work properly, //%PRODUCTNAME must be restarted. Please restart %PRODUCTNAME now. css::java::RestartRequiredException exc( - OUString("JavaVirtualMachine::getJavaVM failed because " - "Office must be restarted before Java can be used!"), + "JavaVirtualMachine::getJavaVM failed because " + "Office must be restarted before Java can be used!", static_cast< cppu::OWeakObject * >(this)); askForRetry(css::uno::makeAny(exc)); return css::uno::Any(); @@ -874,8 +874,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) //RuntimeException: error is somewhere in the java framework. //An unexpected error occurred throw css::uno::RuntimeException( - OUString("[JavaVirtualMachine]:An unexpected error occurred" - " while starting Java!"), nullptr); + "[JavaVirtualMachine]:An unexpected error occurred" + " while starting Java!", nullptr); } if (bStarted) @@ -902,7 +902,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) setUpUnoVirtualMachine(guard.getEnvironment()); } catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) { throw css::uno::RuntimeException( - OUString("jvmaccess::VirtualMachine::AttachGuard::CreationException occurred"), + "jvmaccess::VirtualMachine::AttachGuard::CreationException occurred", static_cast< cppu::OWeakObject * >(this)); } } @@ -910,8 +910,8 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) default: // RETURN_JAVAVM if (m_pJavaVm == nullptr) { throw css::uno::RuntimeException( - OUString("JavaVirtualMachine service was initialized in a way" - " that the requested JavaVM pointer is not available"), + "JavaVirtualMachine service was initialized in a way" + " that the requested JavaVM pointer is not available", static_cast< cppu::OWeakObject * >(this)); } return css::uno::makeAny(reinterpret_cast< sal_IntPtr >(m_pJavaVm)); @@ -975,7 +975,7 @@ void SAL_CALL JavaVirtualMachine::registerThread() OUString(), static_cast< cppu::OWeakObject * >(this)); if (!m_xUnoVirtualMachine.is()) throw css::uno::RuntimeException( - OUString("JavaVirtualMachine::registerThread: null VirtualMachine"), + "JavaVirtualMachine::registerThread: null VirtualMachine", static_cast< cppu::OWeakObject * >(this)); GuardStack * pStack = static_cast< GuardStack * >(m_aAttachGuards.getData()); @@ -993,8 +993,8 @@ void SAL_CALL JavaVirtualMachine::registerThread() catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) { throw css::uno::RuntimeException( - OUString("JavaVirtualMachine::registerThread: jvmaccess::" - "VirtualMachine::AttachGuard::CreationException"), + "JavaVirtualMachine::registerThread: jvmaccess::" + "VirtualMachine::AttachGuard::CreationException", static_cast< cppu::OWeakObject * >(this)); } } @@ -1007,13 +1007,13 @@ void SAL_CALL JavaVirtualMachine::revokeThread() OUString(), static_cast< cppu::OWeakObject * >(this)); if (!m_xUnoVirtualMachine.is()) throw css::uno::RuntimeException( - OUString("JavaVirtualMachine::revokeThread: null VirtualMachine"), + "JavaVirtualMachine::revokeThread: null VirtualMachine", static_cast< cppu::OWeakObject * >(this)); GuardStack * pStack = static_cast< GuardStack * >(m_aAttachGuards.getData()); if (pStack == nullptr || pStack->empty()) throw css::uno::RuntimeException( - OUString("JavaVirtualMachine::revokeThread: no matching registerThread"), + "JavaVirtualMachine::revokeThread: no matching registerThread", static_cast< cppu::OWeakObject * >(this)); delete pStack->top(); pStack->pop(); @@ -1266,7 +1266,7 @@ void SAL_CALL JavaVirtualMachine::elementReplaced( catch (jvmaccess::VirtualMachine::AttachGuard::CreationException &) { throw css::uno::RuntimeException( - OUString("jvmaccess::VirtualMachine::AttachGuard::CreationException"), + "jvmaccess::VirtualMachine::AttachGuard::CreationException", nullptr); } } @@ -1524,7 +1524,7 @@ void JavaVirtualMachine::setUpUnoVirtualMachine(JNIEnv * environment) { baseUrl = exp->expandMacros("$URE_INTERNAL_JAVA_DIR/"); } catch (css::lang::IllegalArgumentException &) { throw css::uno::RuntimeException( - OUString("css::lang::IllegalArgumentException"), + "css::lang::IllegalArgumentException", static_cast< cppu::OWeakObject * >(this)); } OUString classPath; @@ -1624,7 +1624,7 @@ void JavaVirtualMachine::setUpUnoVirtualMachine(JNIEnv * environment) { m_xVirtualMachine, cl2); } catch (jvmaccess::UnoVirtualMachine::CreationException &) { throw css::uno::RuntimeException( - OUString("jvmaccess::UnoVirtualMachine::CreationException"), + "jvmaccess::UnoVirtualMachine::CreationException", static_cast< cppu::OWeakObject * >(this)); } } @@ -1632,7 +1632,7 @@ void JavaVirtualMachine::setUpUnoVirtualMachine(JNIEnv * environment) { void JavaVirtualMachine::handleJniException(JNIEnv * environment) { environment->ExceptionClear(); throw css::uno::RuntimeException( - OUString("JNI exception occurred"), + "JNI exception occurred", static_cast< cppu::OWeakObject * >(this)); } diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx index d50c243949f6..3035bdad527d 100644 --- a/stoc/source/simpleregistry/simpleregistry.cxx +++ b/stoc/source/simpleregistry/simpleregistry.cxx @@ -249,8 +249,8 @@ sal_Int32 Key::getLongValue() break; case RegError::INVALID_VALUE: throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getLongValue:" - " underlying RegistryKey::getValue() = RegError::INVALID_VALUE"), + "com.sun.star.registry.SimpleRegistry key getLongValue:" + " underlying RegistryKey::getValue() = RegError::INVALID_VALUE", static_cast< OWeakObject * >(this)); default: throw css::registry::InvalidRegistryException( @@ -288,9 +288,9 @@ css::uno::Sequence< sal_Int32 > Key::getLongListValue() return css::uno::Sequence< sal_Int32 >(); case RegError::INVALID_VALUE: throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getLongListValue:" - " underlying RegistryKey::getLongListValue() =" - " RegError::INVALID_VALUE"), + "com.sun.star.registry.SimpleRegistry key getLongListValue:" + " underlying RegistryKey::getLongListValue() =" + " RegError::INVALID_VALUE", static_cast< OWeakObject * >(this)); default: throw css::registry::InvalidRegistryException( @@ -302,8 +302,8 @@ css::uno::Sequence< sal_Int32 > Key::getLongListValue() sal_uInt32 n = list.getLength(); if (n > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getLongListValue:" - " underlying RegistryKey::getLongListValue() too large"), + "com.sun.star.registry.SimpleRegistry key getLongListValue:" + " underlying RegistryKey::getLongListValue() too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< sal_Int32 > value(static_cast< sal_Int32 >(n)); @@ -354,15 +354,15 @@ OUString Key::getAsciiValue() // size contains terminating null (error in underlying registry.cxx): if (size == 0) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getAsciiValue:" - " underlying RegistryKey size 0 cannot happen due to" - " design error"), + "com.sun.star.registry.SimpleRegistry key getAsciiValue:" + " underlying RegistryKey size 0 cannot happen due to" + " design error", static_cast< OWeakObject * >(this)); } if (size > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getAsciiValue:" - " underlying RegistryKey size too large"), + "com.sun.star.registry.SimpleRegistry key getAsciiValue:" + " underlying RegistryKey size too large", static_cast< OWeakObject * >(this)); } std::vector< char > list(size); @@ -376,9 +376,9 @@ OUString Key::getAsciiValue() } if (list[size - 1] != '\0') { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getAsciiValue:" - " underlying RegistryKey value must be null-terminated due" - " to design error"), + "com.sun.star.registry.SimpleRegistry key getAsciiValue:" + " underlying RegistryKey value must be null-terminated due" + " to design error", static_cast< OWeakObject * >(this)); } OUString value; @@ -390,8 +390,8 @@ OUString Key::getAsciiValue() RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR))) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getAsciiValue:" - " underlying RegistryKey not UTF-8"), + "com.sun.star.registry.SimpleRegistry key getAsciiValue:" + " underlying RegistryKey not UTF-8" , static_cast< OWeakObject * >(this)); } return value; @@ -407,8 +407,8 @@ void Key::setAsciiValue(OUString const & value) RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR))) { throw css::uno::RuntimeException( - OUString("com.sun.star.registry.SimpleRegistry key setAsciiValue:" - " value not UTF-16"), + "com.sun.star.registry.SimpleRegistry key setAsciiValue:" + " value not UTF-16", static_cast< OWeakObject * >(this)); } RegError err = key_.setValue( @@ -436,9 +436,9 @@ css::uno::Sequence< OUString > Key::getAsciiListValue() return css::uno::Sequence< OUString >(); case RegError::INVALID_VALUE: throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key" - " getAsciiListValue: underlying" - " RegistryKey::getStringListValue() = RegError::INVALID_VALUE"), + "com.sun.star.registry.SimpleRegistry key" + " getAsciiListValue: underlying" + " RegistryKey::getStringListValue() = RegError::INVALID_VALUE", static_cast< OWeakObject * >(this)); default: throw css::registry::InvalidRegistryException( @@ -451,9 +451,9 @@ css::uno::Sequence< OUString > Key::getAsciiListValue() sal_uInt32 n = list.getLength(); if (n > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key" - " getAsciiListValue: underlying" - " RegistryKey::getStringListValue() too large"), + "com.sun.star.registry.SimpleRegistry key" + " getAsciiListValue: underlying" + " RegistryKey::getStringListValue() too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< OUString > value(static_cast< sal_Int32 >(n)); @@ -468,9 +468,9 @@ css::uno::Sequence< OUString > Key::getAsciiListValue() RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR))) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key" - " getAsciiListValue: underlying RegistryKey not" - " UTF-8"), + "com.sun.star.registry.SimpleRegistry key" + " getAsciiListValue: underlying RegistryKey not" + " UTF-8", static_cast< OWeakObject * >(this)); } } @@ -490,8 +490,8 @@ void Key::setAsciiListValue( RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR))) { throw css::uno::RuntimeException( - OUString("com.sun.star.registry.SimpleRegistry key" - " setAsciiListValue: value not UTF-16"), + "com.sun.star.registry.SimpleRegistry key" + " setAsciiListValue: value not UTF-16", static_cast< OWeakObject * >(this)); } list.push_back(utf8); @@ -538,15 +538,15 @@ OUString Key::getStringValue() // registry.cxx): if (size == 0 || (size & 1) == 1) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getStringValue:" - " underlying RegistryKey size 0 or odd cannot happen due to" - " design error"), + "com.sun.star.registry.SimpleRegistry key getStringValue:" + " underlying RegistryKey size 0 or odd cannot happen due to" + " design error", static_cast< OWeakObject * >(this)); } if (size > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getStringValue:" - " underlying RegistryKey size too large"), + "com.sun.star.registry.SimpleRegistry key getStringValue:" + " underlying RegistryKey size too large", static_cast< OWeakObject * >(this)); } std::vector< sal_Unicode > list(size); @@ -560,9 +560,9 @@ OUString Key::getStringValue() } if (list[size/2 - 1] != 0) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getStringValue:" - " underlying RegistryKey value must be null-terminated due" - " to design error"), + "com.sun.star.registry.SimpleRegistry key getStringValue:" + " underlying RegistryKey value must be null-terminated due" + " to design error", static_cast< OWeakObject * >(this)); } return OUString(&list[0], static_cast< sal_Int32 >(size/2 - 1)); @@ -597,9 +597,9 @@ css::uno::Sequence< OUString > Key::getStringListValue() return css::uno::Sequence< OUString >(); case RegError::INVALID_VALUE: throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key" - " getStringListValue: underlying" - " RegistryKey::getUnicodeListValue() = RegError::INVALID_VALUE"), + "com.sun.star.registry.SimpleRegistry key" + " getStringListValue: underlying" + " RegistryKey::getUnicodeListValue() = RegError::INVALID_VALUE", static_cast< OWeakObject * >(this)); default: throw css::registry::InvalidRegistryException( @@ -612,9 +612,9 @@ css::uno::Sequence< OUString > Key::getStringListValue() sal_uInt32 n = list.getLength(); if (n > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key" - " getStringListValue: underlying" - " RegistryKey::getUnicodeListValue() too large"), + "com.sun.star.registry.SimpleRegistry key" + " getStringListValue: underlying" + " RegistryKey::getUnicodeListValue() too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< OUString > value(static_cast< sal_Int32 >(n)); @@ -666,8 +666,8 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue() } if (size > SAL_MAX_INT32) { throw css::registry::InvalidValueException( - OUString("com.sun.star.registry.SimpleRegistry key getBinaryValue:" - " underlying RegistryKey size too large"), + "com.sun.star.registry.SimpleRegistry key getBinaryValue:" + " underlying RegistryKey size too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< sal_Int8 > value(static_cast< sal_Int32 >(size)); @@ -780,8 +780,8 @@ Key::openKeys() sal_uInt32 n = list.getLength(); if (n > SAL_MAX_INT32) { throw css::registry::InvalidRegistryException( - OUString("com.sun.star.registry.SimpleRegistry key getKeyNames:" - " underlying RegistryKey::getKeyNames() too large"), + "com.sun.star.registry.SimpleRegistry key getKeyNames:" + " underlying RegistryKey::getKeyNames() too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< css::uno::Reference< css::registry::XRegistryKey > > @@ -808,8 +808,8 @@ css::uno::Sequence< OUString > Key::getKeyNames() sal_uInt32 n = list.getLength(); if (n > SAL_MAX_INT32) { throw css::registry::InvalidRegistryException( - OUString("com.sun.star.registry.SimpleRegistry key getKeyNames:" - " underlying RegistryKey::getKeyNames() too large"), + "com.sun.star.registry.SimpleRegistry key getKeyNames:" + " underlying RegistryKey::getKeyNames() too large", static_cast< OWeakObject * >(this)); } css::uno::Sequence< OUString > names(static_cast< sal_Int32 >(n)); @@ -948,8 +948,8 @@ void SimpleRegistry::mergeKey( break; case RegError::MERGE_ERROR: throw css::registry::MergeConflictException( - OUString("com.sun.star.registry.SimpleRegistry.mergeKey:" - " underlying Registry::mergeKey() = RegError::MERGE_ERROR"), + "com.sun.star.registry.SimpleRegistry.mergeKey:" + " underlying Registry::mergeKey() = RegError::MERGE_ERROR", static_cast< cppu::OWeakObject * >(this)); default: throw css::registry::InvalidRegistryException( -- cgit alue='libreoffice-4-0-0'>libreoffice-4-0-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-09-24Update AutoText for srLaurent BP
2019-09-24Remove useless AutoTextLaurent BP
2019-09-08tdf#81436 Add default Autotext to all l10nLaurent BP
2014-07-02Build all l10n AutoTextLaurent Balland-Poirier
2014-05-25fdo#78833 Update AllLangPackage_autotestshare.mkLaurent Balland-Poirier