mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Revert "[clang-tidy] Pass by value with std::move"
This reverts commit e46039efb1
.
This commit is contained in:
parent
5502729131
commit
504aacd244
2 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,6 @@
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <utility>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -128,9 +127,9 @@ Variant::Variant (const double value)
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Variant::Variant (std::string value)
|
Variant::Variant (const std::string& value)
|
||||||
: _type (Variant::type_string)
|
: _type (Variant::type_string)
|
||||||
, _string (std::move(value))
|
, _string (value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
Variant (const bool);
|
Variant (const bool);
|
||||||
Variant (const int);
|
Variant (const int);
|
||||||
Variant (const double);
|
Variant (const double);
|
||||||
Variant (std::string );
|
Variant (const std::string&);
|
||||||
Variant (const char*);
|
Variant (const char*);
|
||||||
Variant (const time_t, const enum type);
|
Variant (const time_t, const enum type);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue