summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-10 14:59:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-10 14:59:37 +0200
commit036ed9a613c4affea26713e5762710b6d2ce09bb (patch)
tree67d5cd34ca41cc66d78964aae292fde90779b1f4
parent0f3ac23d732239b50207cfbb8cf810ef41fa9835 (diff)
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
-rw-r--r--sc/source/ui/unoobj/servuno.cxx1
1 files changed, 1 insertions, 0 deletions
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<uno::XInterface> ScServiceProvider::MakeInstance(
xRet.set(static_cast<sheet::XFormulaOpCodeMapper*>(new ScFormulaOpCodeMapperObj(::std::unique_ptr<formula::FormulaCompiler> (pComp))));
break;
}
+ break;
#if HAVE_FEATURE_SCRIPTING
case Type::VBAOBJECTPROVIDER:
if (pDocShell && pDocShell->GetDocument().IsInVBAMode())