summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/converters.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/domain/converters.impl.h')
-rw-r--r--gentoobrowse-api/domain/converters.impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse-api/domain/converters.impl.h b/gentoobrowse-api/domain/converters.impl.h
index 10afa79..f6b6bad 100644
--- a/gentoobrowse-api/domain/converters.impl.h
+++ b/gentoobrowse-api/domain/converters.impl.h
@@ -10,7 +10,7 @@ namespace Slicer {
UnpackPqTextArrayInto(std::istream & s, std::vector<T> & l) : UnpackPqTextArray(s), list(l) { }
void
- consume(const std::string & s) override
+ consume(std::string s) override
{
if constexpr (std::is_arithmetic_v<T>) {
if (std::from_chars(s.c_str(), s.c_str() + s.length(), list.emplace_back()).ec != std::error_code {}) {
@@ -18,7 +18,7 @@ namespace Slicer {
}
}
else {
- list.emplace_back(s);
+ list.emplace_back(std::move(s));
}
}