forked from qt-creator/qt-creator
C++: Remove redundant assignment
TranslationUnit assigns itself to the control in its ctor. Change-Id: I08cf70c32f557648709e29b03c2f939d294fdc6d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
935316674c
commit
997f8fe269
@@ -285,7 +285,6 @@ Document::Document(const QString &fileName)
|
||||
localFileName.size());
|
||||
_translationUnit = new TranslationUnit(_control, fileId);
|
||||
_translationUnit->setLanguageFeatures(LanguageFeatures::defaultFeatures());
|
||||
(void) _control->switchTranslationUnit(_translationUnit);
|
||||
}
|
||||
|
||||
Document::~Document()
|
||||
|
||||
Reference in New Issue
Block a user