[Libreoffice-commits] core.git: sfx2/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 7 15:42:30 UTC 2019
sfx2/source/view/viewfrm.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit bc4ba2452dbdea991407389e1e428333efd7d3fa
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Aug 7 15:29:48 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Aug 7 17:41:48 2019 +0200
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 at redhat.com>
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();
}
More information about the Libreoffice-commits
mailing list