Fix compilation with Qt4

Change-Id: I486198c9d7e27159445411c38037d315b90cd67a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Orgad Shaneh
2013-10-01 13:31:30 +03:00
committed by Orgad Shaneh
parent 22f0bdff74
commit e4f762deec

View File

@@ -249,7 +249,7 @@ QSharedPointer<SnapshotUpdater> CppEditorSupport::snapshotUpdater()
{
QSharedPointer<SnapshotUpdater> updater = m_snapshotUpdater;
if (!updater) {
updater.reset(new SnapshotUpdater(fileName()));
updater = QSharedPointer<SnapshotUpdater>(new SnapshotUpdater(fileName()));
m_snapshotUpdater = updater;
}
return updater;