Commit 7047cf01 authored by Sergey Shambir's avatar Sergey Shambir Committed by Erik Verbruggen
Browse files

CppEditor: simplified Objective-C status check



Change-Id: Id318fc34b19295dacef63a7192a0ff11fef3e274
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent d14767a6
...@@ -1245,7 +1245,7 @@ void ConvertCStringToNSString::match(const CppQuickFixInterface &interface, ...@@ -1245,7 +1245,7 @@ void ConvertCStringToNSString::match(const CppQuickFixInterface &interface,
{ {
CppRefactoringFilePtr file = interface->currentFile(); CppRefactoringFilePtr file = interface->currentFile();
if (interface->editor()->mimeType() != QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE)) if (!interface->editor()->isObjCEnabled())
return; return;
WrapStringLiteral::Type type = WrapStringLiteral::TypeNone; WrapStringLiteral::Type type = WrapStringLiteral::TypeNone;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment