Commit 782ae3b7 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix static_assert() syntax

static_assert in C++11 requires a second argument, single-arg static_assert
is C++17.
parent da4c0eb2
......@@ -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
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment