mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
remove uneeded usage of std::move
This commit is contained in:
commit
5c77edcc5e
@ -824,15 +824,24 @@ public:
|
||||
value () noexcept //-- comment out for VC++11
|
||||
: base_(value_null()) {}
|
||||
|
||||
template <typename T> value(T const& _val_)
|
||||
: base_(_val_) {}
|
||||
value(value_integer val)
|
||||
: base_(val) {}
|
||||
|
||||
value(value_double val)
|
||||
: base_(val) {}
|
||||
|
||||
value(value_bool val)
|
||||
: base_(val) {}
|
||||
|
||||
value(value_null val)
|
||||
: base_(val) {}
|
||||
|
||||
value(value_unicode_string const& val)
|
||||
: base_(val) {}
|
||||
|
||||
value (value const& other)
|
||||
: base_(other.base_) {}
|
||||
|
||||
value( value && other) noexcept
|
||||
: base_(std::move(other.base_)) {}
|
||||
|
||||
value & operator=( value const& other)
|
||||
{
|
||||
if (this == &other)
|
||||
@ -841,6 +850,9 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
value( value && other) noexcept
|
||||
: base_(std::move(other.base_)) {}
|
||||
|
||||
bool operator==(value const& other) const
|
||||
{
|
||||
return boost::apply_visitor(impl::equals(),base_,other.base_);
|
||||
|
||||
@ -107,7 +107,7 @@ feature_ptr postgis_featureset::next()
|
||||
// TODO - extend feature class to know
|
||||
// that its id is also an attribute to avoid
|
||||
// this duplication
|
||||
feature->put<mapnik::value_integer>(name,std::move(val));
|
||||
feature->put<mapnik::value_integer>(name,val);
|
||||
++pos;
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user