diff --git a/src/plugins/texteditor/texteditorconstants.cpp b/src/plugins/texteditor/texteditorconstants.cpp index ae67b142449..c7740c6c5b5 100644 --- a/src/plugins/texteditor/texteditorconstants.cpp +++ b/src/plugins/texteditor/texteditorconstants.cpp @@ -110,7 +110,7 @@ TextStyle styleFromName(const char *name) if (qstrcmp(name, nameForStyle(TextStyle(i))) == 0) return TextStyle(i); } - return TextStyle(); + return C_LAST_STYLE_SENTINEL; } } // namespace Constants