Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
41118d91
Commit
41118d91
authored
Sep 21, 2009
by
Daniel Molkentin
Browse files
Don't chop the first char off a variable value during MSVC variable detection.
parent
07bb19fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/toolchain.cpp
View file @
41118d91
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment