Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
f8e06d55
Commit
f8e06d55
authored
Jul 22, 2020
by
Kurt Hindenburg
Browse files
Simplify switch statement with an if statement
parent
9a1c47e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filterHotSpots/UrlFilterHotspot.cpp
View file @
f8e06d55
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment