summaryrefslogtreecommitdiff
path: root/lib/jsonParse-persistence.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-01 19:56:59 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commit133ebfe96385a0e94ab8b029a31ca0cd7a23c50a (patch)
tree1331ac6fd70e9f79aa4d8fb913ec9dbe3222f3f0 /lib/jsonParse-persistence.cpp
parentError on bad cast of referenced object (diff)
downloadilt-133ebfe96385a0e94ab8b029a31ca0cd7a23c50a.tar.bz2
ilt-133ebfe96385a0e94ab8b029a31ca0cd7a23c50a.tar.xz
ilt-133ebfe96385a0e94ab8b029a31ca0cd7a23c50a.zip
Pass new values more efficiently
Diffstat (limited to 'lib/jsonParse-persistence.cpp')
-rw-r--r--lib/jsonParse-persistence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jsonParse-persistence.cpp b/lib/jsonParse-persistence.cpp
index 5b3314e..7c00773 100644
--- a/lib/jsonParse-persistence.cpp
+++ b/lib/jsonParse-persistence.cpp
@@ -44,7 +44,7 @@ namespace Persistence {
void
JsonParsePersistence::pushText(std::string && value)
{
- pushValue(value);
+ pushValue(std::move(value));
}
void
@@ -72,7 +72,7 @@ namespace Persistence {
JsonParsePersistence::pushValue(T && value)
{
current()->beforeValue(stk);
- current()->setValue(value);
+ current()->setValue(std::forward<T>(value));
stk.pop();
}