It prevents return value optimization.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
for (size_t ix = 0; ix < (psize-sref.size()); ++ix)
outstr.push_back('=');
- return std::move(outstr);
+ return outstr;
}
inline std::string from_base64(boost::string_ref sref)
std::string outstr(b64_iter(sref.data()),
b64_iter(sref.data() + sref.size()));
- return std::move(outstr);
+ return outstr;
}
} /* namespace */
}
}
- return std::move(ldap_bindpw);
+ return ldap_bindpw;
}
#if defined(HAVE_OPENLDAP)
encode_json(f);
std::ostringstream os;
f->flush(os);
- return std::move(to_base64(std::move(os.str())));
+ return to_base64(std::move(os.str()));
}
friend inline ostream& operator<<(ostream& os, const RGWToken& token);