From 3d64d4e69e96ea45d27cea84f3bab6655eabac04 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Wed, 6 Oct 2021 14:48:14 +0200 Subject: [PATCH] Added move setter for config data --- src/ScreensaverPlugin.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ScreensaverPlugin.hpp b/src/ScreensaverPlugin.hpp index a414309..148c960 100644 --- a/src/ScreensaverPlugin.hpp +++ b/src/ScreensaverPlugin.hpp @@ -24,6 +24,7 @@ class ScreensaverPlugin { virtual void render() = 0; // draw next frame void config(const nlohmann::json& data) { _j = data; } + void config(nlohmann::json&& data) { _j = data; } const nlohmann::json& config() const { return _j; } protected: