We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a44f9 commit 2ed9520Copy full SHA for 2ed9520
1 file changed
src/front_end_utils/include/utils.hxx
@@ -38,17 +38,15 @@ concept is_qcolor = requires(const T& t) { QColor(t); };
38
39
template <is_qcolor... Args>
40
inline constexpr bool is_valid_hex_color(Args&&... args) noexcept {
41
- return (
42
- [&]() {
43
- QColor color(std::forward<Args>(args));
+ return (... && [&]() {
+ QColor color(std::forward<Args>(args));
44
45
- if (!color.isValid()) {
46
- return false;
47
- }
+ if (!color.isValid()) {
+ return false;
+ }
48
49
- return true;
50
- }(),
51
- ...);
+ return true;
+ }());
52
}
53
54
using init_list = initializer_list<uint8_t>;
0 commit comments