Added move setter for config data

This commit is contained in:
Bob Polis 2021-10-06 14:48:14 +02:00
parent d4d77efdff
commit 3d64d4e69e

View File

@ -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: