diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-07 15:29:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-07 17:41:48 +0200 |
commit | bc4ba2452dbdea991407389e1e428333efd7d3fa (patch) | |
tree | d04319429c7a586dc1c52a5684747331b1c75197 /sfx2 | |
parent | f5c27036ad63c8bc3d9b86f2e4e772c01490d883 (diff) |
Consistently treat vnd.sun.star.script location case-sensitively
...as all other places handling it already appear to do
Change-Id: I63079c077e2ac7636f07ea7748fb2f39f08157c4
Reviewed-on: https://gerrit.libreoffice.org/77113
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 7e70cb249c64..241e3c8a2709 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2635,12 +2635,12 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro ) } BasicManager* pBasMgr = nullptr; - if ( aLocation.equalsIgnoreAsciiCase( "application" ) ) + if ( aLocation == "application" ) { // application basic pBasMgr = SfxApplication::GetBasicManager(); } - else if ( aLocation.equalsIgnoreAsciiCase( "document" ) ) + else if ( aLocation == "document" ) { pBasMgr = GetObjectShell()->GetBasicManager(); } @@ -2667,11 +2667,11 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro ) // open lib container and break operation if it couldn't be opened css::uno::Reference< css::script::XLibraryContainer > xLibCont; - if ( aLocation.equalsIgnoreAsciiCase( "application" ) ) + if ( aLocation == "application" ) { xLibCont = SfxGetpApp()->GetBasicContainer(); } - else if ( aLocation.equalsIgnoreAsciiCase( "document" ) ) + else if ( aLocation == "document" ) { xLibCont = GetObjectShell()->GetBasicContainer(); } |