Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 39dc0e58 authored by Laurent Montel's avatar Laurent Montel 😁

Don't use "default" keyword

parent d9ad9e21
......@@ -501,213 +501,211 @@ void TemplatesCommandMenu::slotInsertCommand(TemplatesCommandMenu::Command cmd)
switch (cmd) {
case TemplatesCommandMenu::CBlank:
Q_EMIT insertCommand(QStringLiteral("%BLANK"));
break;
return;
case TemplatesCommandMenu::CQuote:
Q_EMIT insertCommand(QStringLiteral("%QUOTE"));
break;
return;
case TemplatesCommandMenu::CText:
Q_EMIT insertCommand(QStringLiteral("%TEXT"));
break;
return;
case TemplatesCommandMenu::COMsgId:
Q_EMIT insertCommand(QStringLiteral("%OMSGID"));
break;
return;
case TemplatesCommandMenu::CODate:
Q_EMIT insertCommand(QStringLiteral("%ODATE"));
break;
return;
case TemplatesCommandMenu::CODateShort:
Q_EMIT insertCommand(QStringLiteral("%ODATESHORT"));
break;
return;
case TemplatesCommandMenu::CODateEn:
Q_EMIT insertCommand(QStringLiteral("%ODATEEN"));
break;
return;
case TemplatesCommandMenu::CODow:
Q_EMIT insertCommand(QStringLiteral("%ODOW"));
break;
return;
case TemplatesCommandMenu::COTime:
Q_EMIT insertCommand(QStringLiteral("%OTIME"));
break;
return;
case TemplatesCommandMenu::COTimeLong:
Q_EMIT insertCommand(QStringLiteral("%OTIMELONG"));
break;
return;
case TemplatesCommandMenu::COTimeLongEn:
Q_EMIT insertCommand(QStringLiteral("%OTIMELONGEN"));
break;
return;
case TemplatesCommandMenu::COToAddr:
Q_EMIT insertCommand(QStringLiteral("%OTOADDR"));
break;
return;
case TemplatesCommandMenu::COToName:
Q_EMIT insertCommand(QStringLiteral("%OTONAME"));
break;
return;
case TemplatesCommandMenu::COToFName:
Q_EMIT insertCommand(QStringLiteral("%OTOFNAME"));
break;
return;
case TemplatesCommandMenu::COToLName:
Q_EMIT insertCommand(QStringLiteral("%OTOLNAME"));
break;
return;
case TemplatesCommandMenu::COCCAddr:
Q_EMIT insertCommand(QStringLiteral("%OCCADDR"));
break;
return;
case TemplatesCommandMenu::COCCName:
Q_EMIT insertCommand(QStringLiteral("%OCCNAME"));
break;
return;
case TemplatesCommandMenu::COCCFName:
Q_EMIT insertCommand(QStringLiteral("%OCCFNAME"));
break;
return;
case TemplatesCommandMenu::COCCLName:
Q_EMIT insertCommand(QStringLiteral("%OCCLNAME"));
break;
return;
case TemplatesCommandMenu::COFromAddr:
Q_EMIT insertCommand(QStringLiteral("%OFROMADDR"));
break;
return;
case TemplatesCommandMenu::COFromName:
Q_EMIT insertCommand(QStringLiteral("%OFROMNAME"));
break;
return;
case TemplatesCommandMenu::COFromFName:
Q_EMIT insertCommand(QStringLiteral("%OFROMFNAME"));
break;
return;
case TemplatesCommandMenu::COFromLName:
Q_EMIT insertCommand(QStringLiteral("%OFROMLNAME"));
break;
return;
case TemplatesCommandMenu::COFullSubject:
Q_EMIT insertCommand(QStringLiteral("%OFULLSUBJECT"));
break;
return;
case TemplatesCommandMenu::CQHeaders:
Q_EMIT insertCommand(QStringLiteral("%QHEADERS"));
break;
return;
case TemplatesCommandMenu::CHeaders:
Q_EMIT insertCommand(QStringLiteral("%HEADERS"));
break;
return;
case TemplatesCommandMenu::COHeader:
Q_EMIT insertCommand(QStringLiteral("%OHEADER=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CMsgId:
Q_EMIT insertCommand(QStringLiteral("%MSGID"));
break;
return;
case TemplatesCommandMenu::CDate:
Q_EMIT insertCommand(QStringLiteral("%DATE"));
break;
return;
case TemplatesCommandMenu::CDateShort:
Q_EMIT insertCommand(QStringLiteral("%DATESHORT"));
break;
return;
case TemplatesCommandMenu::CDateEn:
Q_EMIT insertCommand(QStringLiteral("%DATEEN"));
break;
return;
case TemplatesCommandMenu::CDow:
Q_EMIT insertCommand(QStringLiteral("%DOW"));
break;
return;
case TemplatesCommandMenu::CTime:
Q_EMIT insertCommand(QStringLiteral("%TIME"));
break;
return;
case TemplatesCommandMenu::CTimeLong:
Q_EMIT insertCommand(QStringLiteral("%TIMELONG"));
break;
return;
case TemplatesCommandMenu::CTimeLongEn:
Q_EMIT insertCommand(QStringLiteral("%TIMELONGEN"));
break;
return;
case TemplatesCommandMenu::COAddresseesAddr:
Q_EMIT insertCommand(QStringLiteral("%OADDRESSEESADDR"));
break;
return;
case TemplatesCommandMenu::CToAddr:
Q_EMIT insertCommand(QStringLiteral("%TOADDR"));
break;
return;
case TemplatesCommandMenu::CToName:
Q_EMIT insertCommand(QStringLiteral("%TONAME"));
break;
return;
case TemplatesCommandMenu::CToFName:
Q_EMIT insertCommand(QStringLiteral("%TOFNAME"));
break;
return;
case TemplatesCommandMenu::CToLName:
Q_EMIT insertCommand(QStringLiteral("%TOLNAME"));
break;
return;
case TemplatesCommandMenu::CCCAddr:
Q_EMIT insertCommand(QStringLiteral("%CCADDR"));
break;
return;
case TemplatesCommandMenu::CCCName:
Q_EMIT insertCommand(QStringLiteral("%CCNAME"));
break;
return;
case TemplatesCommandMenu::CCCFName:
Q_EMIT insertCommand(QStringLiteral("%CCFNAME"));
break;
return;
case TemplatesCommandMenu::CCCLName:
Q_EMIT insertCommand(QStringLiteral("%CCLNAME"));
break;
return;
case TemplatesCommandMenu::CFromAddr:
Q_EMIT insertCommand(QStringLiteral("%FROMADDR"));
break;
return;
case TemplatesCommandMenu::CFromName:
Q_EMIT insertCommand(QStringLiteral("%FROMNAME"));
break;
return;
case TemplatesCommandMenu::CFromFName:
Q_EMIT insertCommand(QStringLiteral("%FROMFNAME"));
break;
return;
case TemplatesCommandMenu::CFromLName:
Q_EMIT insertCommand(QStringLiteral("%FROMLNAME"));
break;
return;
case TemplatesCommandMenu::CFullSubject:
Q_EMIT insertCommand(QStringLiteral("%FULLSUBJECT"));
break;
return;
case TemplatesCommandMenu::CHeader:
Q_EMIT insertCommand(QStringLiteral("%HEADER=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CSystem:
Q_EMIT insertCommand(QStringLiteral("%SYSTEM=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CQuotePipe:
Q_EMIT insertCommand(QStringLiteral("%QUOTEPIPE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CTextPipe:
Q_EMIT insertCommand(QStringLiteral("%TEXTPIPE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CMsgPipe:
Q_EMIT insertCommand(QStringLiteral("%MSGPIPE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CBodyPipe:
Q_EMIT insertCommand(QStringLiteral("%BODYPIPE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CClearPipe:
Q_EMIT insertCommand(QStringLiteral("%CLEARPIPE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CCursor:
Q_EMIT insertCommand(QStringLiteral("%CURSOR"));
break;
return;
case TemplatesCommandMenu::CSignature:
Q_EMIT insertCommand(QStringLiteral("%SIGNATURE"));
break;
return;
case TemplatesCommandMenu::CInsert:
Q_EMIT insertCommand(QStringLiteral("%INSERT=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CDnl:
Q_EMIT insertCommand(QStringLiteral("%-"));
break;
return;
case TemplatesCommandMenu::CRem:
Q_EMIT insertCommand(QStringLiteral("%REM=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CNop:
Q_EMIT insertCommand(QStringLiteral("%NOP"));
break;
return;
case TemplatesCommandMenu::CClear:
Q_EMIT insertCommand(QStringLiteral("%CLEAR"));
break;
return;
case TemplatesCommandMenu::CDebug:
Q_EMIT insertCommand(QStringLiteral("%DEBUG"));
break;
return;
case TemplatesCommandMenu::CDebugOff:
Q_EMIT insertCommand(QStringLiteral("%DEBUGOFF"));
break;
return;
case TemplatesCommandMenu::CQuotePlain:
Q_EMIT insertCommand(QStringLiteral("%FORCEDPLAIN"));
break;
return;
case TemplatesCommandMenu::CQuoteHtml:
Q_EMIT insertCommand(QStringLiteral("%FORCEDHTML"));
break;
return;
case TemplatesCommandMenu::CDictionaryLanguage:
Q_EMIT insertCommand(QStringLiteral("%DICTIONARYLANGUAGE=\"\""), -1);
break;
return;
case TemplatesCommandMenu::CLanguage:
Q_EMIT insertCommand(QStringLiteral("%LANGUAGE=\"\""), -1);
break;
default:
qCDebug(TEMPLATEPARSER_LOG) << "Unknown template command index:" << cmd;
break;
return;
}
qCDebug(TEMPLATEPARSER_LOG) << "Unknown template command index:" << cmd;
}
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