Drop snapshot argument from Bind constructor.

This commit is contained in:
Christian Kamm
2010-02-02 11:32:25 +01:00
parent b102690b00
commit c0506785bf
2 changed files with 3 additions and 5 deletions

View File

@@ -168,9 +168,8 @@ protected:
} // end of anonymous namespace
Bind::Bind(Document::Ptr doc, const Snapshot &snapshot, Interpreter::Engine *interp)
Bind::Bind(Document::Ptr doc, Interpreter::Engine *interp)
: _doc(doc),
_snapshot(snapshot),
_interp(interp),
_currentObjectValue(0),
_typeEnvironment(0),
@@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s
QStringList localImports;
foreach (Document::Ptr doc, documentByPath.values(path)) {
Bind *newBind = new Bind(doc, snapshot, interp);
Bind *newBind = new Bind(doc, interp);
binds += newBind;
localImports += newBind->localImports();