aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-26 12:44:57 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-27 10:48:09 +0200
commit4510231c95a087f58a155cf74164e403e1e0584f (patch)
tree14b553d066e8bf301dfc8b071bc1eea663adbc68
parent753c33142f450f1fae60ae9a74b9c5b499be5ae0 (diff)
downloadlibgpiod-4510231c95a087f58a155cf74164e403e1e0584f.tar.gz
bindings: cxx: use () instead of (void) in line_settings::reset()
While () and (void) are synonymous in C++, we use () everywhere else so fix the only exception. This DOES NOT change the ABI as the generated symbol is the same (at least as verified on gcc and clang). Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--bindings/cxx/gpiodcxx/line-settings.hpp2
-rw-r--r--bindings/cxx/line-settings.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/cxx/gpiodcxx/line-settings.hpp b/bindings/cxx/gpiodcxx/line-settings.hpp
index b043167d..bacf359e 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 272a8486..30d78999 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());