diff --git a/cppwinrt/code_writers.h b/cppwinrt/code_writers.h index b5ceed07e..0ff1887d1 100644 --- a/cppwinrt/code_writers.h +++ b/cppwinrt/code_writers.h @@ -2298,7 +2298,9 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable for (auto&& [interface_name, info] : interfaces) { - w.write(info.overridable ? " using %T::%;\n" : " using impl::consume_t::%;\n", + w.write(info.overridable + ? " using %T::%;\n" + : " using impl::consume_t::%;\n", interface_name, method_name); } diff --git a/test/test_component/test_overload.cpp b/test/test_component/test_overload.cpp index fb95ca20e..9c21a06cf 100644 --- a/test/test_component/test_overload.cpp +++ b/test/test_component/test_overload.cpp @@ -8,12 +8,12 @@ using namespace test_component; struct DerivedClass : OverloadClassT { - void Foo() - { - // make sure we can actually call the overloads (no ambiguous call errors) - Overload(); - Overload(1); - Overload(1, 2); - Overload(1, 2, 3); - } + void Foo() + { + // make sure we can actually call the overloads (no ambiguous call errors) + Overload(); + Overload(1); + Overload(1, 2); + Overload(1, 2, 3); + } }; \ No newline at end of file