Get rid of assignment operators in RefCount
authorJoão Abecasis <joao.abecasis@nokia.com>
Fri, 16 Dec 2011 16:22:45 +0000 (17:22 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 22:37:58 +0000 (23:37 +0100)
commit7fadc3ce322706ed6c36ad907e83fed1992b490e
tree4f8fcd91d2459841d1af4916e438da9a9d934a89
parent7d16ea40331dc4480af823288e6ed3ca58a677d8
Get rid of assignment operators in RefCount

, and make it strictly a POD struct.

Since this operator was only being used to set the initial (owned) value
of the reference count, the name of the function introduced here to
replace it makes that use case explicit.

Change-Id: I2feadd2ac35dcb75ca211471baf5044a5f57cd62
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qarraydata.cpp
src/corelib/tools/qbytearray.cpp
src/corelib/tools/qhash.cpp
src/corelib/tools/qlinkedlist.h
src/corelib/tools/qlist.cpp
src/corelib/tools/qmap.cpp
src/corelib/tools/qrefcount.h
src/corelib/tools/qstring.cpp
src/corelib/tools/qvector.h
tests/benchmarks/corelib/tools/qvector/qrawvector.h