diff --git a/incubator/@react-native-webapis/battery-status/windows/RNWBatteryStatus.h b/incubator/@react-native-webapis/battery-status/windows/RNWBatteryStatus.h index 70cce7f5ca..b59eb7311e 100644 --- a/incubator/@react-native-webapis/battery-status/windows/RNWBatteryStatus.h +++ b/incubator/@react-native-webapis/battery-status/windows/RNWBatteryStatus.h @@ -7,16 +7,15 @@ namespace winrt::ReactNativeBatteryStatus { - using winrt::Windows::Devices::Power::Battery; - using winrt::Windows::System::Power::BatteryStatus; using winrt::Microsoft::ReactNative::JSValue; using winrt::Microsoft::ReactNative::JSValueObject; using winrt::Microsoft::ReactNative::ReactContext; using winrt::Microsoft::ReactNative::ReactPromise; + using winrt::Windows::Devices::Power::Battery; + using winrt::Windows::System::Power::BatteryStatus; REACT_MODULE(RNWBatteryStatus) - struct RNWBatteryStatus - { + struct RNWBatteryStatus { REACT_INIT(Initialize) void Initialize(ReactContext const &reactContext) noexcept { @@ -56,4 +55,4 @@ namespace winrt::ReactNativeBatteryStatus ReactContext m_reactContext{nullptr}; }; -} // namespace winrt::ReactNativeBatteryStatus +} // namespace winrt::ReactNativeBatteryStatus diff --git a/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.cpp b/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.cpp index f86e235497..0d7894b5e5 100644 --- a/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.cpp +++ b/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.cpp @@ -1,4 +1,5 @@ #include "pch.h" + #include "ReactPackageProvider.h" #if __has_include("ReactPackageProvider.g.cpp") #include "ReactPackageProvider.g.cpp" @@ -15,4 +16,4 @@ namespace winrt::ReactNativeBatteryStatus::implementation { AddAttributedModules(packageBuilder, false); } -} // namespace winrt::ReactNativeBatteryStatus::implementation +} // namespace winrt::ReactNativeBatteryStatus::implementation diff --git a/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.h b/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.h index 48e20f377d..2348889a18 100644 --- a/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.h +++ b/incubator/@react-native-webapis/battery-status/windows/ReactPackageProvider.h @@ -5,17 +5,18 @@ namespace winrt::ReactNativeBatteryStatus::implementation { using winrt::Microsoft::ReactNative::IReactPackageBuilder; - struct ReactPackageProvider : ReactPackageProviderT - { + struct ReactPackageProvider : ReactPackageProviderT { ReactPackageProvider() = default; void CreatePackage(IReactPackageBuilder const &packageBuilder) noexcept; }; -} // namespace winrt::ReactNativeBatteryStatus::implementation +} // namespace winrt::ReactNativeBatteryStatus::implementation namespace winrt::ReactNativeBatteryStatus::factory_implementation { using winrt::Microsoft::ReactNative::IReactPackageBuilder; - struct ReactPackageProvider : ReactPackageProviderT {}; -} // namespace winrt::ReactNativeBatteryStatus::factory_implementation + struct ReactPackageProvider + : ReactPackageProviderT { + }; +} // namespace winrt::ReactNativeBatteryStatus::factory_implementation diff --git a/incubator/@react-native-webapis/battery-status/windows/pch.h b/incubator/@react-native-webapis/battery-status/windows/pch.h index dd9407c48b..55fe59bc53 100644 --- a/incubator/@react-native-webapis/battery-status/windows/pch.h +++ b/incubator/@react-native-webapis/battery-status/windows/pch.h @@ -2,13 +2,13 @@ #define NOMINMAX +#include #include #include #include #include -#include #if __has_include() - #include +#include #endif #include