diff --git a/cppwinrt/code_writers.h b/cppwinrt/code_writers.h index df4d66564..6c909fbe1 100644 --- a/cppwinrt/code_writers.h +++ b/cppwinrt/code_writers.h @@ -2426,10 +2426,10 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable w.write(format, bind(generics)); } - auto format = R"( struct % : Windows::Foundation::IUnknown + auto format = R"( struct % : winrt::Windows::Foundation::IUnknown {% %(std::nullptr_t = nullptr) noexcept {} - %(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} + %(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template %(L lambda); template %(F* function); template %(O* object, M method); diff --git a/test/test_component/test_component.idl b/test/test_component/test_component.idl index a3274e4c3..f3cba16e0 100644 --- a/test/test_component/test_component.idl +++ b/test/test_component/test_component.idl @@ -293,5 +293,7 @@ namespace test_component static void StaticMethod(Struct param); void Method(Windows.Foundation.Uri param); } + + delegate void Delegate(); } }