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
PIM
PIM Messagelib
Commits
2f956bcc
Commit
2f956bcc
authored
Nov 02, 2021
by
Laurent Montel
😁
Browse files
Use operator==
parent
3dac516e
Pipeline
#93160
passed with stage
in 41 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/scamdetection/scamdetectioninfo.cpp
View file @
2f956bcc
...
@@ -53,3 +53,8 @@ QDebug operator<<(QDebug d, const MessageViewer::ScamDetectionInfo &t)
...
@@ -53,3 +53,8 @@ QDebug operator<<(QDebug d, const MessageViewer::ScamDetectionInfo &t)
d
<<
"DomainOrName "
<<
t
.
domainOrEmail
();
d
<<
"DomainOrName "
<<
t
.
domainOrEmail
();
return
d
;
return
d
;
}
}
bool
ScamDetectionInfo
::
operator
==
(
const
ScamDetectionInfo
&
other
)
const
{
return
domainOrEmail
()
==
other
.
domainOrEmail
()
&&
enabled
()
==
other
.
enabled
()
&&
scamChecks
()
==
other
.
scamChecks
();
}
messageviewer/src/scamdetection/scamdetectioninfo.h
View file @
2f956bcc
...
@@ -38,6 +38,8 @@ public:
...
@@ -38,6 +38,8 @@ public:
Q_REQUIRED_RESULT
ScamDetectionInfo
::
ScamDetectionFields
scamChecks
()
const
;
Q_REQUIRED_RESULT
ScamDetectionInfo
::
ScamDetectionFields
scamChecks
()
const
;
Q_REQUIRED_RESULT
bool
operator
==
(
const
ScamDetectionInfo
&
other
)
const
;
private:
private:
QString
mDomainOrEmail
;
QString
mDomainOrEmail
;
bool
mEnabled
=
false
;
bool
mEnabled
=
false
;
...
...
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