From da9dd5d9b0afe077bea2d0e50389612017f844aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sat, 1 Aug 2015 13:48:45 +0200 Subject: [PATCH] Make specific setParameters() functions private. --- linuxffbconditioneffect.h | 3 ++- linuxffbconstanteffect.h | 3 ++- linuxffbperiodiceffect.h | 3 ++- linuxffbrampeffect.h | 3 ++- sdl2ffbconstanteffect.h | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) 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; }; -- 2.43.5