diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/dlgprov/dlgevtatt.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index dd2d18f92e7c..b0a51fe1047c 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -624,17 +624,16 @@ namespace dlgprov if( pResMgr ) { OUString aRes( ResId(STR_ERRUNOEVENTBINDUNG, *pResMgr) ); - OUString aQuoteChar( "\"" ); + OUString aQuoteChar( "\"" ); - OUString aOURes = aRes; - sal_Int32 nIndex = aOURes.indexOf( '%' ); + sal_Int32 nIndex = aRes.indexOf( '%' ); OUString aOUFinal; - aOUFinal += aOURes.copy( 0, nIndex ); + aOUFinal += aRes.copy( 0, nIndex ); aOUFinal += aQuoteChar; aOUFinal += aMethodName; aOUFinal += aQuoteChar; - aOUFinal += aOURes.copy( nIndex + 2 ); + aOUFinal += aRes.copy( nIndex + 2 ); ScopedVclPtrInstance<MessageDialog>::Create(nullptr, aOUFinal)->Execute(); } |