Fix backingstore crash with QAxWidgets
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Fri, 18 May 2012 07:55:26 +0000 (10:55 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 18 May 2012 13:33:43 +0000 (15:33 +0200)
commit5a110517bb3e2df7aaf66e33ad37b2201ebd62f6
treea7aae680e33cbf16a3c48a7e2f81871f89e5b87f
parentdd699d5ea52b9c9abd1b0e7ebb0d705901117f7f
Fix backingstore crash with QAxWidgets

The crash was caused by the fact that backingStore parameter is always
null (there seems to be no call in codebase that uses anything else but
the default values for this function).
Using "store" member variable instead of "backingStore" parameter gets
rid of the crash, and it is how it was in Qt4 - probably the bug crept
in when the paremeter and member variables were renamed in Qt5.

Task-number: QTBUG-25803
Change-Id: I4b1ccf540fddd6baa1dffa7f8165272b54caf238
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/widgets/kernel/qwidgetbackingstore.cpp
src/widgets/kernel/qwidgetbackingstore_p.h