Skip to content

Commit 27d1b6d

Browse files
committed
PR feedback
1 parent ca44055 commit 27d1b6d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

cppwinrt/code_writers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,9 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable<T, D, %>
22982298

22992299
for (auto&& [interface_name, info] : interfaces)
23002300
{
2301-
w.write(info.overridable ? " using %T<D>::%;\n" : " using impl::consume_t<D, %>::%;\n",
2301+
w.write(info.overridable
2302+
? " using %T<D>::%;\n"
2303+
: " using impl::consume_t<D, %>::%;\n",
23022304
interface_name,
23032305
method_name);
23042306
}

test/test_component/test_overload.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ using namespace test_component;
88

99
struct DerivedClass : OverloadClassT<DerivedClass>
1010
{
11-
void Foo()
12-
{
13-
// make sure we can actually call the overloads (no ambiguous call errors)
14-
Overload();
15-
Overload(1);
16-
Overload(1, 2);
17-
Overload(1, 2, 3);
18-
}
11+
void Foo()
12+
{
13+
// make sure we can actually call the overloads (no ambiguous call errors)
14+
Overload();
15+
Overload(1);
16+
Overload(1, 2);
17+
Overload(1, 2, 3);
18+
}
1919
};

0 commit comments

Comments
 (0)