[clang-tidy] Remove redundant const

Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-09-27 20:40:09 -07:00
committed by Paul Beckingham
parent 7f86b29aa9
commit 55d103c491
12 changed files with 36 additions and 36 deletions

View File

@@ -167,7 +167,7 @@ std::string Task::statusToText (Task::status s)
////////////////////////////////////////////////////////////////////////////////
// Returns a proper handle to the task. Tasks should not be referenced by UUIDs
// as long as they have non-zero ID.
const std::string Task::identifier (bool shortened /* = false */) const
std::string Task::identifier (bool shortened /* = false */) const
{
if (id != 0)
return format (id);
@@ -207,7 +207,7 @@ std::vector <std::string> Task::all ()
}
////////////////////////////////////////////////////////////////////////////////
const std::string Task::get (const std::string& name) const
std::string Task::get (const std::string& name) const
{
auto i = data.find (name);
if (i != data.end ())
@@ -1695,7 +1695,7 @@ void Task::validate_before (const std::string& left, const std::string& right)
// Encode values prior to serialization.
// [ -> &open;
// ] -> &close;
const std::string Task::encode (const std::string& value) const
std::string Task::encode (const std::string& value) const
{
auto modified = str_replace (value, "[", "&open;");
return str_replace (modified, "]", "&close;");
@@ -1705,7 +1705,7 @@ const std::string Task::encode (const std::string& value) const
// Decode values after parse.
// [ <- &open;
// ] <- &close;
const std::string Task::decode (const std::string& value) const
std::string Task::decode (const std::string& value) const
{
if (value.find ('&') == std::string::npos)
return value;