Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
libktorrent
Commits
690cbf71
Commit
690cbf71
authored
Jul 24, 2022
by
Nicolas Fella
Browse files
Make operator== const
parent
f8011bf9
Pipeline
#208530
failed with stage
in 2 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/peer/peerdownloader.cpp
View file @
690cbf71
...
...
@@ -34,12 +34,12 @@ TimeStampedRequest::~TimeStampedRequest()
{
}
bool
TimeStampedRequest
::
operator
==
(
const
Request
&
r
)
bool
TimeStampedRequest
::
operator
==
(
const
Request
&
r
)
const
{
return
r
==
req
;
}
bool
TimeStampedRequest
::
operator
==
(
const
TimeStampedRequest
&
r
)
bool
TimeStampedRequest
::
operator
==
(
const
TimeStampedRequest
&
r
)
const
{
return
r
.
req
==
req
;
}
...
...
src/peer/peerdownloader.h
View file @
690cbf71
...
...
@@ -52,14 +52,14 @@ struct TimeStampedRequest {
* @param r The Request
* @return true if equal
*/
bool
operator
==
(
const
Request
&
r
);
bool
operator
==
(
const
Request
&
r
)
const
;
/**
* Equality operator, compares requests only.
* @param r The Request
* @return true if equal
*/
bool
operator
==
(
const
TimeStampedRequest
&
r
);
bool
operator
==
(
const
TimeStampedRequest
&
r
)
const
;
/**
* Assignment operator.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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