summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolseditorsupport.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-07 10:43:59 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-07 12:22:30 +0100
commit5aa8a63f90934619072242ac0f6f5fca128edd39 (patch)
tree70dc2be9fe13ffa49d716f5e94c01bdd718e194e /src/plugins/cpptools/cpptoolseditorsupport.cpp
parentf161f1a25d52ffd051d11135b6bdba593547b66e (diff)
downloadqt-creator-5aa8a63f90934619072242ac0f6f5fca128edd39.tar.gz
CppEditor: Fix potential crash
The m_snapshotUpdater may never be accessed directly. Change-Id: Id773a291f66e93a48ae46f2b1c04417af2f26763 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index fc6b6204b5..437176376d 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -510,7 +510,7 @@ SemanticInfo::Source CppEditorSupport::currentSource(bool force)
int line = 0, column = 0;
m_textEditor->convertPosition(m_textEditor->editorWidget()->position(), &line, &column);
- const Snapshot snapshot = m_snapshotUpdater->snapshot();
+ const Snapshot snapshot = snapshotUpdater()->snapshot();
QByteArray code;
if (force || m_lastSemanticInfo.revision != editorRevision())