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/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/persistence.cpp')
-rw-r--r-- | lib/persistence.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/persistence.cpp b/lib/persistence.cpp index 15391ad..c4ee142 100644 --- a/lib/persistence.cpp +++ b/lib/persistence.cpp @@ -27,25 +27,24 @@ namespace Persistence { } void - Selection::setValue(float &) + Selection::setValue(float) { throw std::runtime_error("Unexpected float"); } void - Selection::setValue(bool &) + Selection::setValue(bool) { throw std::runtime_error("Unexpected bool"); } - void - Selection::setValue(const std::nullptr_t &) + void Selection::setValue(std::nullptr_t) { throw std::runtime_error("Unexpected null"); } void - Selection::setValue(std::string &) + Selection::setValue(std::string &&) { throw std::runtime_error("Unexpected string"); } |