summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-13 10:50:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-13 13:00:34 +0100
commit5f0d6df7f57ae281fe161e61c7f25d67453fddd2 (patch)
treec14e2b1d6ce385313e3659ef513ee0e1ea9809b9 /sc
parente524f3f9d616b04fdd7d994ad1a1ec65ab6bb2a7 (diff)
Use two-argument form of static_assert
Change-Id: I2f2c78668f37f2d7474bf0e9d0b084bf2223a81d Reviewed-on: https://gerrit.libreoffice.org/82577 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/bcaslot.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index 614145b7bc06..c904ad716bd1 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -43,15 +43,15 @@ constexpr SCROW BCA_SLOTS_ROW = MAXROWCOUNT / BCA_SLICE;
constexpr SCCOL BCA_SLOT_COLS = MAXCOLCOUNT / BCA_SLOTS_COL;
constexpr SCROW BCA_SLOT_ROWS = MAXROWCOUNT / BCA_SLOTS_ROW;
// multiple?
-static_assert((BCA_SLOT_COLS * BCA_SLOTS_COL) == MAXCOLCOUNT && "bad BCA_SLOTS_COL value");
-static_assert((BCA_SLOT_ROWS * BCA_SLOTS_ROW) == MAXROWCOUNT && "bad BCA_SLOTS_ROW value");
+static_assert((BCA_SLOT_COLS * BCA_SLOTS_COL) == MAXCOLCOUNT, "bad BCA_SLOTS_COL value");
+static_assert((BCA_SLOT_ROWS * BCA_SLOTS_ROW) == MAXROWCOUNT, "bad BCA_SLOTS_ROW value");
// size of slot array if linear
constexpr int BCA_SLOTS = BCA_SLOTS_COL * BCA_SLOTS_ROW;
// Arbitrary 2**31/8, assuming size_t can hold at least 2^31 values and
// sizeof_ptr is at most 8 bytes. You'd probably doom your machine's memory
// anyway, once you reached these values...
-static_assert(BCA_SLOTS <= 268435456 && "DOOMed");
+static_assert(BCA_SLOTS <= 268435456, "DOOMed");
struct ScSlotData
{