Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
f8e06d55
Commit
f8e06d55
authored
Jul 22, 2020
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify switch statement with an if statement
parent
9a1c47e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/filterHotSpots/UrlFilterHotspot.cpp
src/filterHotSpots/UrlFilterHotspot.cpp
+3
-7
No files found.
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