diff options
Diffstat (limited to 'framework/source/services/substitutepathvars.cxx')
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index 7b1504ae69f4..a266af912c8f 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -488,8 +488,7 @@ OUString SubstitutePathVariables::impl_substituteVariable( const OUString& rText // variable in text but unknown! if ( bSubstRequired ) { - OUString aMsg( "Unknown variable found!" ); - throw NoSuchElementException( aMsg, static_cast<cppu::OWeakObject *>(this) ); + throw NoSuchElementException( "Unknown variable found!", static_cast<cppu::OWeakObject *>(this) ); } else aResult = aWorkText; @@ -600,8 +599,7 @@ OUString const & SubstitutePathVariables::impl_getSubstituteVariableValue( const } else { - OUString aExceptionText("Unknown variable!"); - throw NoSuchElementException(aExceptionText, static_cast<cppu::OWeakObject *>(this)); + throw NoSuchElementException("Unknown variable!", static_cast<cppu::OWeakObject *>(this)); } } |