summaryrefslogtreecommitdiff
path: root/sigc++/signal.h
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-06-02 22:36:35 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-06-02 22:36:35 +0200
commit317ab48ceb0a416c56c41b091a3769ccf2880ba8 (patch)
tree91b9bcb4a88dab986624a05bebc8419dbc4c1386 /sigc++/signal.h
parent070095a6addddea72b04cebe7479698082ac1419 (diff)
downloadsigc++-317ab48ceb0a416c56c41b091a3769ccf2880ba8.tar.gz
test_rvalue_ref: Small fixes
* tests/.gitignore: * tests/CMakeLists.txt: * tests/Makefile.am: Add test_rvalue_ref. * tests/test_rvalue_ref.cc: Avoid [-Werror=unused-parameter] when building with warnings=fatal. Some files have been reformated with clang-format in order to make the CI tests happy. Reformated with clang-format 12, but CI uses clang-format 10.
Diffstat (limited to 'sigc++/signal.h')
-rw-r--r--sigc++/signal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigc++/signal.h b/sigc++/signal.h
index 336bd5f..c1b0f33 100644
--- a/sigc++/signal.h
+++ b/sigc++/signal.h
@@ -364,8 +364,7 @@ public:
continue;
(sigc::internal::function_pointer_cast<call_type>(slot.rep_->call_))(
- slot.rep_,
- std::forward<type_trait_take_t<T_arg>>(a)...);
+ slot.rep_, std::forward<type_trait_take_t<T_arg>>(a)...);
}
}
};
@@ -456,7 +455,8 @@ public:
}
/** Triggers the emission of the signal (see emit()). */
- decltype(auto) operator()(type_trait_take_t<T_arg>... a) const {
+ decltype(auto) operator()(type_trait_take_t<T_arg>... a) const
+ {
return emit(std::forward<type_trait_take_t<T_arg>>(a)...);
}