summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpen.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2012-02-25 17:00:15 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-27 14:04:03 +0100
commitc06e932c7307530d23d218ef7ed86bc06583f2d1 (patch)
tree9cb8a21fc990f79651e0e4ce0d54aa0029c20de7 /src/gui/painting/qpen.cpp
parent67ac8d72d5288c77540ed0db3039695ff533b002 (diff)
Move the QString comparison operator as non member function
The operator== and similar should not be member of the class. This ensure a symertry. Indeed, consider this code string == string1 + string2; string1 + string2 == string; The first line compile fine even if QStringBuilder is used, because QStringBuilder will be converted to QString implicitly. But the second line do not compile if the operator== is a member of QString, because the implicit conversion rules do not apply. For this reason, the symetric operators should not be declared as member. Change-Id: I3f7c11fab45a9133f7a424bdfcb894f97da9282b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qpen.cpp')
0 files changed, 0 insertions, 0 deletions