summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-07 17:03:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-07 17:03:45 +0200
commit55b077ca4afdc181e8998313e131448bbab723f5 (patch)
tree2baf7c50b5edf518b25b7b85299a881228897104 /sdext
parent39a6939b0f3ccdd3e11882aee40d2295d1774058 (diff)
Work around bogus warning C4701: potentially uninitialized local variable
Change-Id: I9c5d9c53785828b3535c960f826ccd3720b2e4c3
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterPaneBorderPainter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
index b4b45eec7e9d..97f6781073c2 100644
--- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx
+++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx
@@ -550,7 +550,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle (
case RendererPaneStyle::Anchor::Right:
nX = rInnerBox.X + rInnerBox.Width - nTextWidth;
break;
- case RendererPaneStyle::Anchor::Center:
+ default: // RendererPaneStyle::Anchor::Center
nX = rInnerBox.X + (rInnerBox.Width - nTextWidth)/2;
break;
}