Commit 690cbf71 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Make operator== const

parent f8011bf9
Pipeline #208530 failed with stage
in 2 minutes and 8 seconds
......@@ -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;
}
......
......@@ -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.
......
Supports Markdown
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