summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-10-12 21:46:19 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-10-12 21:46:19 (GMT)
commit782ae3b75c9361e184b3d52a3261671a4b2f3068 (patch)
tree073139784880c9830c00018e62644a6cead6847b
parentda4c0eb2677cd38bbaaa43dbc904f9328528e81c (diff)
Fix static_assert() syntax
static_assert in C++11 requires a second argument, single-arg static_assert is C++17.
-rw-r--r--src/crypto/gui/verifychecksumsdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/gui/verifychecksumsdialog.cpp b/src/crypto/gui/verifychecksumsdialog.cpp
index 2929d18..2e61f07 100644
--- a/src/crypto/gui/verifychecksumsdialog.cpp
+++ b/src/crypto/gui/verifychecksumsdialog.cpp
@@ -68,7 +68,7 @@ static Qt::GlobalColor statusColor[] = {
Qt::red, // Failed
Qt::darkRed, // Error
};
-static_assert(sizeof statusColor / sizeof * statusColor == VerifyChecksumsDialog::NumStatii);
+static_assert((sizeof(statusColor) / sizeof(*statusColor)) == VerifyChecksumsDialog::NumStatii, "");
class ColorizedFileSystemModel : public QDirModel
{