Added move setter for config data
This commit is contained in:
1 parent
d4d77efdff
commit
3d64d4e69e
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user