diff options
author | David Robillard <d@drobilla.net> | 2022-05-27 12:43:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-27 12:54:26 -0400 |
commit | f4ccd8319d752c9bd04b8470ba979d3deb9dc155 (patch) | |
tree | 97db991cee2015251eefabdcd05788da36a726eb | |
parent | 4cb8a90e8d77986cf8e2c9e3bebcf4ad9e047a64 (diff) | |
download | jalv-f4ccd8319d752c9bd04b8470ba979d3deb9dc155.tar.gz jalv-f4ccd8319d752c9bd04b8470ba979d3deb9dc155.tar.bz2 jalv-f4ccd8319d752c9bd04b8470ba979d3deb9dc155.zip |
Use braced init lists
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/jalv_qt.cpp | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/.clang-tidy b/.clang-tidy index f73214b..4cfc149 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -30,7 +30,6 @@ Checks: > -llvm-header-guard, -llvmlibc-*, -misc-no-recursion, - -modernize-return-braced-init-list, -modernize-use-trailing-return-type, -readability-function-cognitive-complexity, -readability-implicit-bool-conversion, diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 43fc490..5ef903d 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -174,7 +174,7 @@ FlowLayout::takeAt(int index) Qt::Orientations FlowLayout::expandingDirections() const { - return Qt::Orientations(); + return {}; } bool @@ -646,10 +646,7 @@ build_control_widget(Jalv* jalv) } if (jalv->ports[i].type == TYPE_CONTROL) { - PortContainer portContainer; - portContainer.jalv = jalv; - portContainer.port = &jalv->ports[i]; - portContainers.append(portContainer); + portContainers.append(PortContainer{jalv, &jalv->ports[i]}); } } |