Changeset 769 for trunk/src/tools/uic/cpp/cppwriteinitialization.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/tools/uic/cpp/cppwriteinitialization.cpp
r651 r769 2789 2789 2790 2790 QMap<QString, bool> map; // bool is dummy. The idea is to sort that (always generate in the same order) by putting a set into a map 2791 foreach ( QStringstr, directives)2792 map [str] = true;2791 foreach (const QString &str, directives) 2792 map.insert(str, true); 2793 2793 2794 2794 if (map.size() == 1) { … … 2799 2799 outputStream << "#if"; 2800 2800 bool doOr = false; 2801 foreach ( QStringstr, map.keys()) {2801 foreach (const QString &str, map.keys()) { 2802 2802 if (doOr) 2803 2803 outputStream << " ||";
Note:
See TracChangeset
for help on using the changeset viewer.