diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-07 16:09:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-07 17:24:18 +0100 |
commit | 274e3ec0c06e667868eca1b75193500ba92d7c14 (patch) | |
tree | c8724b4e2c0b6788a5483559666bab354f99b57d /sd/source/ui/table | |
parent | 657e6ad745d740520e04ae6da56c7607683a1395 (diff) |
coverity#1399034 Unrecoverable parse warning
emit.cpp:1472: assertion failure: emit-ast.cpp:1123: assertion failed: Ran out of fields in aggregate initializer
have a guess as what it might be
Change-Id: I0a93e2529c7d03e837e269f0903038b160540c84
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.hxx | 17 |
2 files changed, 11 insertions, 8 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 4a84a52be381..a1356f40d83e 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -77,7 +77,7 @@ static const sal_Int32 nCellHeight = 7; // one pixel is shared with the next cel static const sal_Int32 nBitmapWidth = (nCellWidth * nPreviewColumns) - (nPreviewColumns - 1); static const sal_Int32 nBitmapHeight = (nCellHeight * nPreviewRows) - (nPreviewRows - 1); -static const OUStringLiteral gPropNames[ CB_COUNT ] = +static const OUStringLiteral gPropNames[CB_COUNT] = { "UseFirstRowStyle", "UseLastRowStyle", diff --git a/sd/source/ui/table/TableDesignPane.hxx b/sd/source/ui/table/TableDesignPane.hxx index e8dbbe305247..6450674e60c5 100644 --- a/sd/source/ui/table/TableDesignPane.hxx +++ b/sd/source/ui/table/TableDesignPane.hxx @@ -43,13 +43,16 @@ class EventMultiplexerEvent; class ViewShellBase; -#define CB_HEADER_ROW 0 -#define CB_TOTAL_ROW 1 -#define CB_BANDED_ROWS 2 -#define CB_FIRST_COLUMN 3 -#define CB_LAST_COLUMN 4 -#define CB_BANDED_COLUMNS 5 -#define CB_COUNT CB_BANDED_COLUMNS-CB_HEADER_ROW+1 +enum TableCheckBox : sal_uInt16 +{ + CB_HEADER_ROW = 0, + CB_TOTAL_ROW = 1, + CB_BANDED_ROWS = 2, + CB_FIRST_COLUMN = 3, + CB_LAST_COLUMN = 4, + CB_BANDED_COLUMNS = 5, + CB_COUNT = CB_BANDED_COLUMNS + 1 +}; class TableValueSet : public ValueSet { |