summaryrefslogtreecommitdiffstats
path: root/sc/source/ui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-10 14:49:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-10 14:57:26 +0200
commit0f3ac23d732239b50207cfbb8cf810ef41fa9835 (patch)
treea338a71c043dfa71e9de3c6cdc5b239b5f4b04a3 /sc/source/ui
parentUpdated core (diff)
downloadcore-0f3ac23d732239b50207cfbb8cf810ef41fa9835.tar.gz
core-0f3ac23d732239b50207cfbb8cf810ef41fa9835.zip
Insert explicit "break" when falling through to empty next case
...which itself only contains a "break" (or nothing at all at the end of the "switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these. Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx3
-rw-r--r--sc/source/ui/view/output2.cxx1
2 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 10d0c185147a..c559b4f235e2 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -286,8 +286,9 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
mpEdDecimals->SetValue(nPrecision);
mpEdLeadZeroes->SetValue(nLeadZeroes);
}
+ break;
default:
- ;
+ break;
}
}
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index d110c1d48dd8..2cc4f5a479e8 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -3519,6 +3519,7 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam)
case SVX_VER_JUSTIFY_TOP:
// align to top
aLogicStart.Y() -= nGap;
+ break;
default:
;
}