Commit 3a2482d
committed
BUG: Logic bug in contenating strings.
PythonQt/generator/main.cpp:98:60: warning: adding 'bool' to a string does not append to the string [-Wstring-plus-int]
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
PythonQt/generator/main.cpp:98:60: note: use array indexing to silence this warning
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?
^
& [ ]
PythonQt/generator/main.cpp:98:78: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses]
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
PythonQt/generator/main.cpp:98:78: note: place parentheses around the '+' expression to silence this warning
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?
^
( )
PythonQt/generator/main.cpp:98:78: note: place parentheses around the '?:' expression to evaluate it first
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?1 parent a9c14ab commit 3a2482d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
0 commit comments