mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
[clang-tidy] Remove redundant const
Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
7f86b29aa9
commit
55d103c491
12 changed files with 36 additions and 36 deletions
10
src/CLI2.cpp
10
src/CLI2.cpp
|
@ -90,7 +90,7 @@ void A2::attribute (const std::string& name, const std::string& value)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Accessor for attributes.
|
||||
const std::string A2::attribute (const std::string& name) const
|
||||
std::string A2::attribute (const std::string& name) const
|
||||
{
|
||||
// Prevent autovivification.
|
||||
auto i = _attributes.find (name);
|
||||
|
@ -101,7 +101,7 @@ const std::string A2::attribute (const std::string& name) const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::string A2::getToken () const
|
||||
std::string A2::getToken () const
|
||||
{
|
||||
auto i = _attributes.find ("canonical");
|
||||
if (i == _attributes.end ())
|
||||
|
@ -175,7 +175,7 @@ void A2::decompose ()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::string A2::dump () const
|
||||
std::string A2::dump () const
|
||||
{
|
||||
auto output = Lexer::typeToString (_lextype);
|
||||
|
||||
|
@ -638,7 +638,7 @@ void CLI2::prepareFilter ()
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Return all the MISCELLANEOUS args.
|
||||
const std::vector <std::string> CLI2::getWords ()
|
||||
std::vector <std::string> CLI2::getWords ()
|
||||
{
|
||||
std::vector <std::string> words;
|
||||
for (const auto& a : _args)
|
||||
|
@ -710,7 +710,7 @@ std::string CLI2::getCommand (bool canonical) const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
const std::string CLI2::dump (const std::string& title) const
|
||||
std::string CLI2::dump (const std::string& title) const
|
||||
{
|
||||
std::stringstream out;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue