Message ID | 20230626105144.242168-2-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | [1/2] bindings: cxx: examples: consistently use () for functions taking no args | expand |
diff --git a/bindings/cxx/gpiodcxx/line-settings.hpp b/bindings/cxx/gpiodcxx/line-settings.hpp index b043167..bacf359 100644 --- a/bindings/cxx/gpiodcxx/line-settings.hpp +++ b/bindings/cxx/gpiodcxx/line-settings.hpp @@ -70,7 +70,7 @@ public: * @brief Reset the line settings to default values. * @return Reference to self. */ - line_settings& reset(void) noexcept; + line_settings& reset() noexcept; /** * @brief Set direction. diff --git a/bindings/cxx/line-settings.cpp b/bindings/cxx/line-settings.cpp index 272a848..30d7899 100644 --- a/bindings/cxx/line-settings.cpp +++ b/bindings/cxx/line-settings.cpp @@ -179,7 +179,7 @@ GPIOD_CXX_API line_settings& line_settings::operator=(line_settings&& other) return *this; } -GPIOD_CXX_API line_settings& line_settings::reset(void) noexcept +GPIOD_CXX_API line_settings& line_settings::reset() noexcept { ::gpiod_line_settings_reset(this->_m_priv->settings.get());