forked from qt-creator/qt-creator
		
	Introduced mime-type for ObjC++.
Updated/fixed the code to treat treat text/x-objcsrc and text/x-objc++src correctly. Change-Id: I1ab97577c786a28381398e4e0fac177325d00d7b Reviewed-by: Sergey Shambir <sergey.shambir.auto@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
		
				
					committed by
					
						 Nikolai Kosjar
						Nikolai Kosjar
					
				
			
			
				
	
			
			
			
						parent
						
							732f8a06ae
						
					
				
				
					commit
					1478e661ed
				
			| @@ -1193,7 +1193,8 @@ bool CppCompletionAssistProcessor::objcKeywordsWanted() const | ||||
|  | ||||
|     const Core::MimeDatabase *mdb = Core::ICore::mimeDatabase(); | ||||
|     const QString mt = mdb->findByFile(fileName).type(); | ||||
|     return mt == QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE); | ||||
|     return mt == QLatin1String(CppTools::Constants::OBJECTIVE_C_SOURCE_MIMETYPE) | ||||
|             || mt == QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE); | ||||
| } | ||||
|  | ||||
| int CppCompletionAssistProcessor::startCompletionInternal(const QString fileName, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user