diff options
author | David Tardon <dtardon@redhat.com> | 2018-02-01 17:23:24 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2018-02-01 17:24:09 +0100 |
commit | e63456225d2953fb9dab8607fb74776a7eb7725f (patch) | |
tree | 13a3b2bbae84f006a2784c7651910dd39f3dc5fc | |
parent | 6b63c8a33f7dc7a2316bc3db8702643b79b46a51 (diff) |
WaE: unnecessary parentheses in declaration
-rw-r--r-- | src/lib/SW602Section.cpp | 2 | ||||
-rw-r--r-- | src/lib/SW602Types.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/SW602Section.cpp b/src/lib/SW602Section.cpp index 102dc4b..a023e56 100644 --- a/src/lib/SW602Section.cpp +++ b/src/lib/SW602Section.cpp @@ -23,7 +23,7 @@ namespace libsw602 std::ostream &operator<<(std::ostream &o, SW602Section::Column const &col) { if (col.m_width > 0) o << "w=" << col.m_width << ","; - static char const *(wh[4])= {"L", "R", "T", "B"}; + static char const *wh[4] = {"L", "R", "T", "B"}; for (int i = 0; i < 4; i++) { if (col.m_margins[i]>0) diff --git a/src/lib/SW602Types.cpp b/src/lib/SW602Types.cpp index d13e2fa..12d6a0e 100644 --- a/src/lib/SW602Types.cpp +++ b/src/lib/SW602Types.cpp @@ -134,15 +134,15 @@ std::string numberingValueToString(NumberingType type, int value) case LOWERCASE_ROMAN: case UPPERCASE_ROMAN: { - static char const *(romanS[]) = {"M", "CM", "D", "CD", "C", "XC", "L", - "XL", "X", "IX", "V", "IV", "I" - }; - static char const *(romans[]) = {"m", "cm", "d", "cd", "c", "xc", "l", - "xl", "x", "ix", "v", "iv", "i" - }; - static int const(romanV[]) = {1000, 900, 500, 400, 100, 90, 50, - 40, 10, 9, 5, 4, 1 - }; + static char const *romanS[] = {"M", "CM", "D", "CD", "C", "XC", "L", + "XL", "X", "IX", "V", "IV", "I" + }; + static char const *romans[] = {"m", "cm", "d", "cd", "c", "xc", "l", + "xl", "x", "ix", "v", "iv", "i" + }; + static int const romanV[] = {1000, 900, 500, 400, 100, 90, 50, + 40, 10, 9, 5, 4, 1 + }; if (value <= 0 || value >= 4000) { SW602_DEBUG_MSG(("libsw602::numberingValueToString: out of range value for type %d\n", int(type))); |