diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-29 10:56:13 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-29 10:56:13 (GMT) |
commit | 5fdbc2e878898ae4314426414382aa8a8c7f2eac (patch) | |
tree | 82505241e5fd248afe1d98cb38a0dca0c7deb41a /src/gui/text/qstatictext.cpp | |
parent | 872a5d79615f5a36bc76730e4e7eecd1f1f54b31 (diff) | |
download | Qt-5fdbc2e878898ae4314426414382aa8a8c7f2eac.zip Qt-5fdbc2e878898ae4314426414382aa8a8c7f2eac.tar.gz Qt-5fdbc2e878898ae4314426414382aa8a8c7f2eac.tar.bz2 |
Initialize member variables in QStaticTextPrivate constructor
Avoid crash when copying a QStaticTextPrivate object
Diffstat (limited to 'src/gui/text/qstatictext.cpp')
-rw-r--r-- | src/gui/text/qstatictext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp index db10a03..3f26eb3 100644 --- a/src/gui/text/qstatictext.cpp +++ b/src/gui/text/qstatictext.cpp @@ -276,6 +276,7 @@ QStaticTextPrivate::QStaticTextPrivate() } QStaticTextPrivate::QStaticTextPrivate(const QStaticTextPrivate &other) + : items(0), itemCount(0), glyphPool(0), positionPool(0), needsClipRect(false) { ref = 1; text = other.text; |