From 39414827352e58e8be76abaa9a5a1ac9518d927f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Nov 2016 13:18:59 +0200 Subject: loplugin:oncevar in sal..scripting Change-Id: Id9ab12f3a61eb83a2288b2fd4d99ab77f5833e1b Reviewed-on: https://gerrit.libreoffice.org/30461 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sc/source/ui/vba/vbawindow.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/source/ui/vba/vbawindow.cxx') diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index 29f9206ac586..de36e6daff9e 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -319,11 +319,10 @@ ScVbaWindow::getCaption() throw (uno::RuntimeException, std::exception) if ( !sTitle.equals( sName ) ) { - static const char sDot[] = "."; // starts with title if ( sName.startsWith( sTitle ) ) // extension starts immediately after - if ( sName.match( sDot, sTitle.getLength() ) ) + if ( sName.match( ".", sTitle.getLength() ) ) sTitle = sName; } } -- cgit