Added move setter for config data
This commit is contained in:
parent
d4d77efdff
commit
3d64d4e69e
@ -24,6 +24,7 @@ class ScreensaverPlugin {
|
|||||||
virtual void render() = 0; // draw next frame
|
virtual void render() = 0; // draw next frame
|
||||||
|
|
||||||
void config(const nlohmann::json& data) { _j = data; }
|
void config(const nlohmann::json& data) { _j = data; }
|
||||||
|
void config(nlohmann::json&& data) { _j = data; }
|
||||||
const nlohmann::json& config() const { return _j; }
|
const nlohmann::json& config() const { return _j; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user