Commit 3118bdcb authored by Marco Bubke's avatar Marco Bubke

ProjectExplorer: Convert empty macro to "KEY="

-DKEY is the same as #define KEY 1
-DKEY= is the same as #define KEY

Change-Id: I958a89d7b024999f1a623d4d309513ce342f6f8a
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 434e895b
......@@ -109,6 +109,8 @@ QByteArray Macro::toKeyValue(const QByteArray &prefix) const
keyValue = prefix;
if (value.isEmpty())
keyValue += key + '=';
else if (value == "1")
keyValue += key;
else
keyValue += key + '=' + value;
......
Markdown is supported
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