mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[Analyzers][CPP]Turn on C26495 and fix code (#21163)
C26495: A member variable isn't initialized by a constructor or by an initializer. Fixing occurrences with default member initialization.
This commit is contained in:
@@ -40,17 +40,16 @@ namespace winrt::PowerRenameUI::implementation
|
||||
private:
|
||||
std::wstring StateToErrorMessage();
|
||||
|
||||
int32_t m_id;
|
||||
int32_t m_id{};
|
||||
hstring m_idStr;
|
||||
winrt::hstring m_original;
|
||||
winrt::hstring m_renamed;
|
||||
uint32_t m_depth;
|
||||
uint32_t m_depth{};
|
||||
hstring m_imagePath;
|
||||
int32_t m_type;
|
||||
bool m_checked;
|
||||
PowerRenameItemRenameStatus m_state;
|
||||
int32_t m_type{};
|
||||
bool m_checked{};
|
||||
PowerRenameItemRenameStatus m_state{};
|
||||
winrt::event<Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user