Skip to content
Snippets Groups Projects
Commit e9597711 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix build warnings

parent fa8d7e1c
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ namespace
LLSD::Type type() const override { return T; }
using LLSD::Impl::assign; // Unhiding base class virtuals...
virtual void assign(LLSD::Impl*& var, Data value)
void assign(LLSD::Impl*& var, Data value) override
{
if (shared())
{
......@@ -900,8 +900,8 @@ const LLSD::String& LLSD::asStringRef() const { return safe(impl).asStringRef();
LLSD::LLSD(const char* v) : impl(0) { ALLOC_LLSD_OBJECT; assign(v); }
void LLSD::assign(const char* v)
{
if(v) assign(std::move(std::string(v)));
else assign(std::move(std::string()));
if(v) assign(std::string(v));
else assign(std::string());
}
......
......@@ -968,7 +968,7 @@ LLSD llsd_clone(LLSD value, LLSD filter)
case LLSD::TypeBinary:
{
LLSD::Binary bin(value.asBinary().begin(), value.asBinary().end());
clone = std::move(LLSD::Binary(std::move(bin)));
clone = LLSD::Binary(std::move(bin));
break;
}
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment