From: Michal MalĂ˝ Date: Sat, 1 Aug 2015 11:48:45 +0000 (+0200) Subject: Make specific setParameters() functions private. X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=da9dd5d9b0afe077bea2d0e50389612017f844aa;p=FFBChecker.git Make specific setParameters() functions private. --- diff --git a/linuxffbconditioneffect.h b/linuxffbconditioneffect.h index ea7adcc..347866a 100644 --- a/linuxffbconditioneffect.h +++ b/linuxffbconditioneffect.h @@ -11,10 +11,11 @@ public: struct ff_effect* createFFStruct(); inline const std::shared_ptr parameters() const { return m_params; } bool setParameters(const std::shared_ptr params); - bool setParameters(const std::shared_ptr params); bool operator==(const FFBEffect& other) const; private: + bool setParameters(const std::shared_ptr params); + std::shared_ptr m_params; }; diff --git a/linuxffbconstanteffect.h b/linuxffbconstanteffect.h index 4d6d0ab..5d78931 100644 --- a/linuxffbconstanteffect.h +++ b/linuxffbconstanteffect.h @@ -11,9 +11,10 @@ public: struct ff_effect* createFFStruct(); inline const std::shared_ptr parameters() const { return m_params; } bool setParameters(const std::shared_ptr params); - bool setParameters(const std::shared_ptr params); private: + bool setParameters(const std::shared_ptr params); + std::shared_ptr m_params; }; diff --git a/linuxffbperiodiceffect.h b/linuxffbperiodiceffect.h index 5cea06c..50ce918 100644 --- a/linuxffbperiodiceffect.h +++ b/linuxffbperiodiceffect.h @@ -11,10 +11,11 @@ public: struct ff_effect* createFFStruct(); inline const std::shared_ptr parameters() const { return m_params; } bool setParameters(const std::shared_ptr params); - bool setParameters(const std::shared_ptr params); bool operator==(const FFBEffect& other) const; private: + bool setParameters(const std::shared_ptr params); + std::shared_ptr m_params; }; diff --git a/linuxffbrampeffect.h b/linuxffbrampeffect.h index 79c8f44..4ed4865 100644 --- a/linuxffbrampeffect.h +++ b/linuxffbrampeffect.h @@ -11,9 +11,10 @@ public: struct ff_effect* createFFStruct(); inline const std::shared_ptr parameters() const { return m_params; } bool setParameters(const std::shared_ptr params); - bool setParameters(const std::shared_ptr params); private: + bool setParameters(const std::shared_ptr params); + std::shared_ptr m_params; }; diff --git a/sdl2ffbconstanteffect.h b/sdl2ffbconstanteffect.h index c7fa5c8..7787189 100644 --- a/sdl2ffbconstanteffect.h +++ b/sdl2ffbconstanteffect.h @@ -11,9 +11,10 @@ public: SDL_HapticEffect* createFFStruct(); inline const std::shared_ptr parameters() const { return m_params; } bool setParameters(const std::shared_ptr params); - bool setParameters(const std::shared_ptr params); private: + bool setParameters(const std::shared_ptr params); + std::shared_ptr m_params; };