From 7047cf0140f74f4b9210db04d1c9b5a656381b66 Mon Sep 17 00:00:00 2001 From: Sergey Shambir Date: Fri, 26 Apr 2013 23:37:50 +0400 Subject: [PATCH] CppEditor: simplified Objective-C status check Change-Id: Id318fc34b19295dacef63a7192a0ff11fef3e274 Reviewed-by: Erik Verbruggen --- src/plugins/cppeditor/cppquickfixes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index e4ba9de5039..e1e40c3b158 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -1245,7 +1245,7 @@ void ConvertCStringToNSString::match(const CppQuickFixInterface &interface, { CppRefactoringFilePtr file = interface->currentFile(); - if (interface->editor()->mimeType() != QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE)) + if (!interface->editor()->isObjCEnabled()) return; WrapStringLiteral::Type type = WrapStringLiteral::TypeNone;