Line 0
Link Here
|
|
|
1 |
Fixes the build with GCC 6 (in addition to fixing an actual bug). |
2 |
|
3 |
/wrkdirs/usr/ports/science/massxpert/work/massxpert-3.4.0/lib/propListHolder.cpp: In member function 'bool massXpert::PropListHolder::removeProp(const QString&)': |
4 |
/wrkdirs/usr/ports/science/massxpert/work/massxpert-3.4.0/lib/propListHolder.cpp:216:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation] |
5 |
if(m_propList.at(iter)->name() == name); |
6 |
^~ |
7 |
/wrkdirs/usr/ports/science/massxpert/work/massxpert-3.4.0/lib/propListHolder.cpp:217:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' |
8 |
{ |
9 |
--- lib/propListHolder.cpp.orig 2017-07-26 17:06:18 UTC |
10 |
+++ lib/propListHolder.cpp |
11 |
@@ -213,7 +213,7 @@ namespace massXpert |
12 |
{ |
13 |
for (int iter = 0; iter < m_propList.size(); ++iter) |
14 |
{ |
15 |
- if(m_propList.at(iter)->name() == name); |
16 |
+ if(m_propList.at(iter)->name() == name) |
17 |
{ |
18 |
m_propList.removeAt(iter); |
19 |
|