From fccd50d32b37b3276af03f28dd3af463cab1dec6 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Thu, 23 Jun 2016 17:03:57 +0200 Subject: [PATCH] QmlDesigner: small code cleanup Change-Id: I4cbfa65c5b8481c859081f43893431c0b93b3cd7 Reviewed-by: Tim Jenssen --- .../qmldesigner/components/integration/designdocument.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/components/integration/designdocument.cpp b/src/plugins/qmldesigner/components/integration/designdocument.cpp index ff78a696f0e..e2ac7235f13 100644 --- a/src/plugins/qmldesigner/components/integration/designdocument.cpp +++ b/src/plugins/qmldesigner/components/integration/designdocument.cpp @@ -170,7 +170,7 @@ QList DesignDocument::qmlParseWarnings() const bool DesignDocument::hasQmlParseWarnings() const { - return currentModel()->rewriterView() && !currentModel()->rewriterView()->warnings().isEmpty(); + return m_rewriterView->warnings().isEmpty(); } QList DesignDocument::qmlParseErrors() const @@ -180,7 +180,7 @@ QList DesignDocument::qmlParseErrors() const bool DesignDocument::hasQmlParseErrors() const { - return currentModel()->rewriterView() && !currentModel()->rewriterView()->errors().isEmpty(); + return m_rewriterView->errors().isEmpty(); } QString DesignDocument::displayName() const