Skip to content

Commit

Permalink
Don't store source after script data is created
Browse files Browse the repository at this point in the history
Change-Id: I84fd61893db3578b80beb85b9a88ed325ea7584f
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
  • Loading branch information
Aaron Kennedy authored and Qt by Nokia committed Feb 20, 2012
1 parent d1c2fb2 commit 9469bdd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/declarative/qml/qdeclarativetypeloader.cpp
Expand Up @@ -1799,11 +1799,6 @@ QDeclarativeScript::Object::ScriptBlock::Pragmas QDeclarativeScriptBlob::pragmas
return m_pragmas;
}

QString QDeclarativeScriptBlob::scriptSource() const
{
return m_source;
}

QDeclarativeTypeLoader *QDeclarativeScriptBlob::typeLoader() const
{
return m_typeLoader;
Expand Down Expand Up @@ -1907,6 +1902,7 @@ void QDeclarativeScriptBlob::done()

m_scriptData->pragmas = m_pragmas;
m_scriptData->m_programSource = m_source.toUtf8();
m_source.clear();
}

QDeclarativeQmldirData::QDeclarativeQmldirData(const QUrl &url)
Expand Down
1 change: 0 additions & 1 deletion src/declarative/qml/qdeclarativetypeloader_p.h
Expand Up @@ -394,7 +394,6 @@ class Q_AUTOTEST_EXPORT QDeclarativeScriptBlob : public QDeclarativeDataBlob
};

QDeclarativeScript::Object::ScriptBlock::Pragmas pragmas() const;
QString scriptSource() const;

QDeclarativeTypeLoader *typeLoader() const;
const QDeclarativeImports &imports() const;
Expand Down

0 comments on commit 9469bdd

Please sign in to comment.