Fixed regression in tst_Codegen.

This commit is contained in:
Erik Verbruggen
2011-02-07 11:25:29 +01:00
parent 3a100e8d7c
commit 8ec140fcc3

View File

@@ -97,7 +97,10 @@ CppRefactoringFile::CppRefactoringFile()
CppRefactoringFile::CppRefactoringFile(const QString &fileName, CppRefactoringChanges *refactoringChanges)
: RefactoringFile(fileName, refactoringChanges)
{ }
{
const Snapshot &snapshot = refactoringChanges->snapshot();
m_cppDocument = snapshot.document(fileName);
}
CppRefactoringFile::CppRefactoringFile(TextEditor::BaseTextEditor *editor, CPlusPlus::Document::Ptr document)
: RefactoringFile()