QDataStream: keep brace delimiters inside #if-scopes
Because it looks odd. Change-Id: Ic272ae7b1b5a3e0a70884caa683ccbdd3a61ff6a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
d340cc1512
commit
19a76200ea
@ -340,6 +340,7 @@ QDataStream &writeAssociativeContainer(QDataStream &s, const Container &c)
|
||||
--it;
|
||||
QT_WARNING_POP
|
||||
s << it.key() << it.value();
|
||||
}
|
||||
#else
|
||||
auto it = c.constBegin();
|
||||
auto end = c.constEnd();
|
||||
@ -352,8 +353,8 @@ QDataStream &writeAssociativeContainer(QDataStream &s, const Container &c)
|
||||
auto next = std::next(rangeStart, i);
|
||||
s << next.key() << next.value();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
return s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user