Skip to content

fix indent in generated code#1489

Merged
dmachaj merged 1 commit into
microsoft:masterfrom
dlech:fix-misleading-indent
May 4, 2025
Merged

fix indent in generated code#1489
dmachaj merged 1 commit into
microsoft:masterfrom
dlech:fix-misleading-indent

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented May 3, 2025

Fix a line that was indented too much in the generated code.

This is just fixes something odd I noticed while reading the generated code.

Before:

        int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, void** innerInterface, void** value) noexcept final try
        {
            if (innerInterface) *innerInterface = nullptr;
            winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface;
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::UI::Xaml::Automation::Peers::AppBarAutomationPeer>(this->shim().CreateInstanceWithOwner(*reinterpret_cast<winrt::Windows::UI::Xaml::Controls::AppBar const*>(&owner), *reinterpret_cast<winrt::Windows::Foundation::IInspectable const*>(&baseInterface), winrt_impl_innerInterface));
                if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface);
            return 0;
        }

After:

        int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, void** innerInterface, void** value) noexcept final try
        {
            if (innerInterface) *innerInterface = nullptr;
            winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface;
            clear_abi(value);
            typename D::abi_guard guard(this->shim());
            *value = detach_from<winrt::Windows::UI::Xaml::Automation::Peers::AppBarAutomationPeer>(this->shim().CreateInstanceWithOwner(*reinterpret_cast<winrt::Windows::UI::Xaml::Controls::AppBar const*>(&owner), *reinterpret_cast<winrt::Windows::Foundation::IInspectable const*>(&baseInterface), winrt_impl_innerInterface));
            if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface);
            return 0;
        }

Fix a line that was indented too much in the generated code.
@dmachaj dmachaj merged commit 4c9e03f into microsoft:master May 4, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants