mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Demoted to BLACK_VERIFY_X (no ASSERT)
This commit is contained in:
committed by
Mat Sutcliffe
parent
15353a1f1d
commit
21068427b0
@@ -291,8 +291,13 @@ namespace BlackGui
|
|||||||
|
|
||||||
QString t(title.trimmed().toLower().simplified());
|
QString t(title.trimmed().toLower().simplified());
|
||||||
QString c(comparison.trimmed().toLower().simplified());
|
QString c(comparison.trimmed().toLower().simplified());
|
||||||
Q_ASSERT_X(!t.isEmpty(), Q_FUNC_INFO, "missing title");
|
|
||||||
Q_ASSERT_X(!c.isEmpty(), Q_FUNC_INFO, "missing value");
|
// we should not have empty titles
|
||||||
|
BLACK_VERIFY_X(!t.isEmpty(), Q_FUNC_INFO, "missing title");
|
||||||
|
BLACK_VERIFY_X(!c.isEmpty(), Q_FUNC_INFO, "missing comparison value");
|
||||||
|
if (t.isEmpty() || c.isEmpty()) { return false; }
|
||||||
|
|
||||||
|
// same?
|
||||||
if (t == c) { return true; }
|
if (t == c) { return true; }
|
||||||
|
|
||||||
// further unify
|
// further unify
|
||||||
|
|||||||
Reference in New Issue
Block a user