From ff862f1dea771feb087f9eade8534efa67f106f9 Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Sat, 1 Jul 2017 17:21:35 +0800 Subject: [PATCH] Change Plugin methods to static --- SDLWrapper/__Plugin.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SDLWrapper/__Plugin.h b/SDLWrapper/__Plugin.h index dd66522..c9430ff 100644 --- a/SDLWrapper/__Plugin.h +++ b/SDLWrapper/__Plugin.h @@ -10,23 +10,23 @@ class Plugin { public: template - decltype(auto) get(const T& obj) + static decltype(auto) get(const T& obj) { return obj._get(); } template - void set(T& obj,U&& value) + static void set(T& obj,U&& value) { obj._set(value); } template - void clear(T& obj) + static void clear(T& obj) { obj._clear(); } template - void set_no_delete(T& obj,U&& value) + static void set_no_delete(T& obj,U&& value) { obj._set_no_delete(value); }