Skip to content

Commit e746489

Browse files
Artemiy-dQt Cherry-pick Bot
authored andcommitted
Improve readability: move the line Methods before MethodImpl
Change-Id: Ibbbe95d29cc91cf36765542e55569101aa3ffc43 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit 5f190e4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
1 parent 6da23ec commit e746489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/corelib/tools/qquasivirtual_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class QQuasiVirtualInterface
5252
static constexpr bool passArgAsValue = sizeof(Arg) <= sizeof(size_t)
5353
&& std::is_trivially_destructible_v<Arg>;
5454

55+
template <typename C = Interface> using Methods = typename C::template MethodTemplates<C>;
56+
5557
template <typename ...>
5658
struct MethodImpl;
5759

@@ -115,8 +117,6 @@ class QQuasiVirtualInterface
115117
using Overridden = R(Subclass::*)(Args...) const;
116118
};
117119

118-
template <typename C = Interface> using Methods = typename C::template MethodTemplates<C>;
119-
120120
public:
121121
template <auto prototype>
122122
struct Method : MethodImpl<Method<prototype>, decltype(prototype)> {};

0 commit comments

Comments
 (0)