From 036ed9a613c4affea26713e5762710b6d2ce09bb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 May 2016 14:59:37 +0200 Subject: Harmless missing break in switch The fallthrough will only happen if !pDocShell. So if HAVE_FEATURE_SCRIPTING, the following case's if-branch is not entered, leading to break. And if !HAVE_FEATURE_SCRIPTING, it leads directly to the default-branch's break. Change-Id: Ia0ac8d849ea3c762893001bfb2c64acd9725dd92 --- sc/source/ui/unoobj/servuno.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index ddfa113ebf51..6fb931baeb9c 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -540,6 +540,7 @@ uno::Reference ScServiceProvider::MakeInstance( xRet.set(static_cast(new ScFormulaOpCodeMapperObj(::std::unique_ptr (pComp)))); break; } + break; #if HAVE_FEATURE_SCRIPTING case Type::VBAOBJECTPROVIDER: if (pDocShell && pDocShell->GetDocument().IsInVBAMode()) -- cgit