diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 16:30:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 08:31:52 +0200 |
commit | 13341ffa49d58f313a05edae4f4f04c215658e9f (patch) | |
tree | 8e2e46f6a83f5e0fa1b09ea160b152f53be5b0ac /svl | |
parent | a1ead1a0281a369087f1b2cce09431542c29bece (diff) |
teach unnecessaryparen plugin about other kinds of statements
i.e. do / while / switch
Change-Id: Id0985015cc425557f9984734701d56466f8a6088
Reviewed-on: https://gerrit.libreoffice.org/39601
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index c0c7b4816841..760f001f1dbf 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -1472,14 +1472,14 @@ DateOrder ImpSvNumberInputScan::GetDateOrder() switch ((nOrder & 0xff00) >> 8) { case 'Y': - switch ((nOrder & 0xff)) + switch (nOrder & 0xff) { case 'M': return DateOrder::YMD; } break; case 'M': - switch ((nOrder & 0xff)) + switch (nOrder & 0xff) { case 'Y': return DateOrder::DMY; @@ -1488,7 +1488,7 @@ DateOrder ImpSvNumberInputScan::GetDateOrder() } break; case 'D': - switch ((nOrder & 0xff)) + switch (nOrder & 0xff) { case 'Y': return DateOrder::MDY; @@ -1498,7 +1498,7 @@ DateOrder ImpSvNumberInputScan::GetDateOrder() break; default: case 0: - switch ((nOrder & 0xff)) + switch (nOrder & 0xff) { case 'Y': return DateOrder::YMD; |