Commit c9457a07 authored by Martin Marinov's avatar Martin Marinov
Browse files

Fix some warnings in Checksum.hh

parent ea2e9c56
......@@ -60,7 +60,7 @@ public:
FAILED // result fails now, but used to work
};
static const char* const type_text(const Type _type)
static const char* type_text(const Type _type)
{
static const char dscr[][32] = {"EQUAL", "UNKNOWN", "IMPROVED",
"NEGLEGIBLE", "SUSPICIOUS", "REGRESSED", "WORKED", "FAILED"};
......@@ -72,7 +72,7 @@ public:
{
}
const Type type() const { return type_; }
Type type() const { return type_; }
bool equal() const { return type() == EQUAL; }
bool operator==(const Difference& _othr) const
......@@ -100,7 +100,7 @@ public:
const String& description() const { return dscr_; }
const char* const type_text() const { return type_text(type_); }
const char* type_text() const { return type_text(type_); }
friend Base::IOutputStream& operator<<(
Base::IOutputStream& _os, Difference& _diff)
......@@ -125,7 +125,7 @@ class Object
{
public:
//! Checksum name.
const char* const name() const { return name_; }
const char* name() const { return name_; }
//! Add a record the checksum (generic version)
template <typename T> void record(const Result& _rslt, const T& _data)
......
Markdown is supported
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