Commit f8e06d55 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Simplify switch statement with an if statement

parent 9a1c47e7
......@@ -43,14 +43,10 @@ UrlFilterHotSpot::UrlFilterHotSpot(int startLine, int startColumn, int endLine,
const QStringList &capturedTexts) :
RegExpFilterHotSpot(startLine, startColumn, endLine, endColumn, capturedTexts)
{
switch(urlType()) {
case Email:
const UrlType kind = urlType();
if (kind == Email) {
setType(EMailAddress);
break;
case StandardUrl:
case Unknown:
default:
} else {
setType(Link);
}
}
......
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