diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:51:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:56:34 +0000 |
commit | 33277614dd160b56bb87b8ec2ed6c5798ab047d0 (patch) | |
tree | c818ed04a9092a21518bdef9b3a88002f2ac683b /svx/source/toolbars | |
parent | c3b888d5be3f0276e40f6412cd01e5eff8ddda0e (diff) |
coverity#704343 Dead default in switch
only >= 0 and <= 4 are possible here, make 0 the default to keep
coverity and compilers both happy
Change-Id: I2e1e6a4ea3a1fd30f230e59ecdcb6b55e9028c08
Diffstat (limited to 'svx/source/toolbars')
-rw-r--r-- | svx/source/toolbars/fontworkbar.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx index 5f28ed2c0b22..320eb29864a1 100644 --- a/svx/source/toolbars/fontworkbar.cxx +++ b/svx/source/toolbars/fontworkbar.cxx @@ -296,8 +296,7 @@ static void impl_execute( SdrView*, SfxRequest& rReq, SdrCustomShapeGeometryItem { case 4 : eFTS = SDRTEXTFIT_ALLLINES; // passthrough case 3 : eHorzAdjust = SDRTEXTHORZADJUST_BLOCK; break; - default: - case 0 : eHorzAdjust = SDRTEXTHORZADJUST_LEFT; break; + default: eHorzAdjust = SDRTEXTHORZADJUST_LEFT; break; case 1 : eHorzAdjust = SDRTEXTHORZADJUST_CENTER; break; case 2 : eHorzAdjust = SDRTEXTHORZADJUST_RIGHT; break; } |