QHostAddress: improve qHash implementation
authorGiuseppe D'Angelo <dangelog@gmail.com>
Wed, 4 Apr 2012 19:37:04 +0000 (20:37 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sun, 8 Apr 2012 16:25:10 +0000 (18:25 +0200)
commitea17c21fd8b93a94027fad7d3827904ae96e2a3b
tree695df83108ba235481dd6c3df494595e9741b5b2
parent9166163f103b8ac35544270c8cf397de3416b8f0
QHostAddress: improve qHash implementation

Avoid the conversion to a temporary QString -- just hash the address
as a byte array.

Change-Id: Ic35cdbbc3ee66c32a28d911bd27de0092395979f
Done-with: Shane Kearns
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/kernel/qhostaddress.cpp
src/network/kernel/qhostaddress.h
tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp