diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-01 19:56:59 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-07 16:41:37 +0000 |
commit | 133ebfe96385a0e94ab8b029a31ca0cd7a23c50a (patch) | |
tree | 1331ac6fd70e9f79aa4d8fb913ec9dbe3222f3f0 /lib/jsonParse-persistence.cpp | |
parent | Error on bad cast of referenced object (diff) | |
download | ilt-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.cpp | 4 |
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(); } |