Added move setter for config data
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user