diff options
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index b7b7621b30f4..c0295e4bfc5e 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -2894,16 +2894,16 @@ void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, const OUString& sModuleName genModuleName = sModuleName; else { - genModuleName = OUString( "Sheet1" ); + genModuleName = "Sheet1"; nNum = 1; } while( xLib->hasByName( genModuleName ) ) - genModuleName = OUString( "Sheet") + OUString::number( ++nNum ); + genModuleName = "Sheet" + OUString::number( ++nNum ); uno::Any aSourceAny; OUString sTmpSource = sSource; if ( sTmpSource.isEmpty() ) - sTmpSource = OUString( "Rem Attribute VBA_ModuleType=VBADocumentModule\nOption VBASupport 1\n" ); + sTmpSource = "Rem Attribute VBA_ModuleType=VBADocumentModule\nOption VBASupport 1\n"; aSourceAny <<= sTmpSource; uno::Reference< script::vba::XVBAModuleInfo > xVBAModuleInfo( xLib, uno::UNO_QUERY ); if ( xVBAModuleInfo.is() ) |