bindings: cxx: use () instead of (void) in line_settings::reset()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 26 Jun 2023 10:44:57 +0000 (12:44 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 27 Jun 2023 08:48:09 +0000 (10:48 +0200)
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>
bindings/cxx/gpiodcxx/line-settings.hpp
bindings/cxx/line-settings.cpp

index b043167db3e7b7b5dcede218d3660a87568be8c8..bacf359e771b00e9fa375166d03892ef9fc3d650 100644 (file)
@@ -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.
index 272a8486920e946ea651bc08b9bc41a8e3e7f14d..30d789996642473ea20cf778b31f599efa855ee1 100644 (file)
@@ -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());