forked from qt-creator/qt-creator
		
	CppTools: Break TextDocument dependency of BaseEditorDocumentProcessor
BaseEditorDocumentProcessor was holding a TextEditor::TextDocument but only used the QTextDocument and the file path. Change-Id: I349cc95d973adeaf9f94638d84333f592c14e7f9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
		@@ -64,7 +64,7 @@ namespace Internal {
 | 
			
		||||
ClangEditorDocumentProcessor::ClangEditorDocumentProcessor(
 | 
			
		||||
        IpcCommunicator &ipcCommunicator,
 | 
			
		||||
        TextEditor::TextDocument *document)
 | 
			
		||||
    : BaseEditorDocumentProcessor(document)
 | 
			
		||||
    : BaseEditorDocumentProcessor(document->document(), document->filePath().toString())
 | 
			
		||||
    , m_diagnosticManager(document)
 | 
			
		||||
    , m_ipcCommunicator(ipcCommunicator)
 | 
			
		||||
    , m_parser(new ClangEditorDocumentParser(document->filePath().toString()))
 | 
			
		||||
@@ -344,7 +344,7 @@ ClangEditorDocumentProcessor::fileContainerWithDocumentContent(const QString &pr
 | 
			
		||||
{
 | 
			
		||||
    return ClangBackEnd::FileContainer(filePath(),
 | 
			
		||||
                                       projectpartId,
 | 
			
		||||
                                       baseTextDocument()->plainText(),
 | 
			
		||||
                                       textDocument()->toPlainText(),
 | 
			
		||||
                                       true,
 | 
			
		||||
                                       revision());
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user