summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-05-03 19:25:38 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-05 07:24:26 +0200
commita6a412dbb6c82f6a4885e54fbef0cfe14fbcd4ab (patch)
tree497a195f3ef7d1789f7b8544f0d836879d201c31 /src/tools/uic/cpp/cppwriteinitialization.cpp
parent2eee9e6fcf9b70681c5d9202d1509d176e48fc31 (diff)
QItemSelectionModel: replace a QPair with a dedicated struct
Pairs are easy to use, but they have no semantics attached: Two QPair<int, int> compare equal, e.g., even though one is used as a coordinate and the other as, say, a fraction. It also carries no information for the reader of the code, as exemplified by the urge to comment on the content of the pairs in both functions that use them. So, write a minimal struct with equality and qHash() instead. The comments are now no longer needed. Change-Id: I51f6ff049a5f8fa61c51856376ac2fcbfb8dd506 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions