Commit 41118d91 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Don't chop the first char off a variable value during MSVC variable detection.

parent 07bb19fe
......@@ -367,8 +367,7 @@ QByteArray MSVCToolChain::predefinedMacros()
QByteArray key = split.at(0).mid(1);
QByteArray value = split.at(1);
if (!value.isEmpty()) {
value = value.mid(1);
value.chop(1);
value.chop(1); //remove '\n'
}
QByteArray newDefine = "#define " + key + " " + value + '\n';
m_predefinedMacros.append(newDefine);
......
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