chore: fix clang-tidy warnings (#38079)
* chore: fix clang-tidy warnings * refactor: avoid need for NOLINTNEXTLINE
This commit is contained in:
parent
fe5cdd39d6
commit
08593fd2bd
20 changed files with 41 additions and 37 deletions
|
@ -17,17 +17,21 @@ namespace electron::api {
|
|||
|
||||
gin::WrapperInfo SystemPreferences::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
SystemPreferences::SystemPreferences() {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
InitializeWindow();
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
SystemPreferences::SystemPreferences() = default;
|
||||
#endif
|
||||
|
||||
SystemPreferences::~SystemPreferences() {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
SystemPreferences::~SystemPreferences() {
|
||||
Browser::Get()->RemoveObserver(this);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
SystemPreferences::~SystemPreferences() = default;
|
||||
#endif
|
||||
|
||||
bool SystemPreferences::IsInvertedColorScheme() {
|
||||
return ui::NativeTheme::GetInstanceForNativeUi()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue