summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaapplication.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:49 +0100
commite53db9461e1cc7ad25ecf5e96021a2f4e70857b1 (patch)
tree768cc65694d0bf8c01e7a7cc192ad55240b58993 /sc/source/ui/vba/vbaapplication.cxx
parent1a3834d7b9382968cf7ba3755d41a6e317997aec (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ief66447f04245b8ab0a4acbf097eb7283529d45d
Diffstat (limited to 'sc/source/ui/vba/vbaapplication.cxx')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index 54cfc9defbc8..09d834533225 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -461,7 +461,7 @@ ScVbaApplication::wait( double time ) throw (uno::RuntimeException, std::excepti
SbxVariableRef aRef = new SbxVariable;
aRef->PutDouble( time );
aArgs->Put( aRef, 1 );
- SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( OUString("WaitUntil"), SbxCLASS_METHOD ));
+ SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "WaitUntil", SbxCLASS_METHOD ));
if ( pMeth )
{
@@ -752,7 +752,7 @@ ScVbaApplication::setDisplayFullScreen( sal_Bool bSet ) throw (uno::RuntimeExce
// #FIXME calling ScViewUtil::SetFullScreen( *pShell, bSet );
// directly results in a strange crash, using dispatch instead
if ( bSet != getDisplayFullScreen() )
- dispatchRequests( getCurrentDocument(), OUString(".uno:FullScreen") );
+ dispatchRequests( getCurrentDocument(), ".uno:FullScreen" );
}
sal_Bool SAL_CALL
@@ -894,19 +894,19 @@ ScVbaApplication::setDefaultFilePath( const OUString& DefaultFilePath ) throw (u
OUString SAL_CALL
ScVbaApplication::getDefaultFilePath() throw (uno::RuntimeException, std::exception)
{
- return getOfficePath( OUString("Work"));
+ return getOfficePath( "Work");
}
OUString SAL_CALL
ScVbaApplication::getLibraryPath() throw (uno::RuntimeException, std::exception)
{
- return getOfficePath( OUString("Basic"));
+ return getOfficePath( "Basic");
}
OUString SAL_CALL
ScVbaApplication::getTemplatesPath() throw (uno::RuntimeException, std::exception)
{
- return getOfficePath( OUString("Template"));
+ return getOfficePath( "Template");
}
OUString SAL_CALL
@@ -1260,7 +1260,7 @@ uno::Any SAL_CALL
ScVbaApplication::Caller( const uno::Any& /*aIndex*/ ) throw ( uno::RuntimeException, std::exception )
{
StarBASIC* pBasic = SfxApplication::GetBasic();
- SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( OUString("FuncCaller"), SbxCLASS_METHOD ));
+ SbMethod* pMeth = static_cast<SbMethod*>(pBasic->GetRtl()->Find( "FuncCaller", SbxCLASS_METHOD ));
uno::Any aRet;
if ( pMeth )
{