Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace winrt::cpp_winui_packaged::implementation
*((int*)nullptr) = 0;
}

void S2_CrashRecovery::OnNavigatedFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs e)
void S2_CrashRecovery::OnNavigatedFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs /*e*/)
{
_timer.Stop();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ void winrt::CppWinUiDesktopState::implementation::MainWindow::OutputFormattedMes
void winrt::CppWinUiDesktopState::implementation::MainWindow::RegisterPowerManagerCallbacks()
{
batteryToken = PowerManager::BatteryStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnBatteryStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnBatteryStatusChanged(); });
powerToken = PowerManager::PowerSupplyStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnPowerSupplyStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnPowerSupplyStatusChanged(); });
powerSourceToken = PowerManager::PowerSourceKindChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnPowerSourceKindChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnPowerSourceKindChanged(); });
chargeToken = PowerManager::RemainingChargePercentChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnRemainingChargePercentChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnRemainingChargePercentChanged(); });
dischargeToken = PowerManager::RemainingDischargeTimeChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnRemainingDischargeTimeChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnRemainingDischargeTimeChanged(); });
displayToken = PowerManager::DisplayStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnDisplayStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnDisplayStatusChanged(); });
energyToken = PowerManager::EnergySaverStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnEnergySaverStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnEnergySaverStatusChanged(); });
powerModeToken = PowerManager::EffectivePowerModeChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnPowerModeChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnPowerModeChanged(); });
userPresenceToken = PowerManager::UserPresenceStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnUserPresenceStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnUserPresenceStatusChanged(); });
systemSuspendToken = PowerManager::SystemSuspendStatusChanged([&](
const auto&, winrt::Windows::Foundation::IInspectable obj) { OnSystemSuspendStatusChanged(); });
const auto&, winrt::Windows::Foundation::IInspectable /*obj*/) { OnSystemSuspendStatusChanged(); });

if (batteryToken && powerToken && powerSourceToken && chargeToken && dischargeToken)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ namespace winrt::PhotoEditor::implementation
}

// Photo clicked event handler for navigation to DetailPage view.
void MainPage::ImageGridView_ItemClick(IInspectable const sender, ItemClickEventArgs const e)
void MainPage::ImageGridView_ItemClick(IInspectable const /*sender*/, ItemClickEventArgs const e)
{
// Prepare the connected animation for navigation to the detail page.
m_persistedItem = e.ClickedItem().as<PhotoEditor::Photo>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void CountingWidget::OnActionInvoked(winrt::WidgetActionInvokedArgs actionInvoke
}

// This function will be invoked when WidgetContext has changed.
void CountingWidget::OnWidgetContextChanged(winrt::WidgetContextChangedArgs contextChangedArgs)
void CountingWidget::OnWidgetContextChanged(winrt::WidgetContextChangedArgs /*contextChangedArgs*/)
{
// (Optional) There a several things that can be done here:
// 1. If you need to adjust template/data for the new context (i.e. widget size has chaned) - you can do it here.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
WeatherWidget::WeatherWidget(winrt::hstring const& id, winrt::hstring const& state) : WidgetImplBase(id, state) {}

// This function wil be invoked when the Increment button was clicked by the user.
void WeatherWidget::OnActionInvoked(winrt::WidgetActionInvokedArgs actionInvokedArgs)
void WeatherWidget::OnActionInvoked(winrt::WidgetActionInvokedArgs /*actionInvokedArgs*/)
{
}

// This function will be invoked when WidgetContext has changed.
void WeatherWidget::OnWidgetContextChanged(winrt::WidgetContextChangedArgs contextChangedArgs)
void WeatherWidget::OnWidgetContextChanged(winrt::WidgetContextChangedArgs /*contextChangedArgs*/)
{
// This function is raised when
// (Optional) There a several things that can be done here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class WidgetImplBase

void State(winrt::hstring const& state) { m_state = state; };

virtual void Activate(winrt::Microsoft::Windows::Widgets::Providers::WidgetContext widgetContext) {};
virtual void Activate(winrt::Microsoft::Windows::Widgets::Providers::WidgetContext /*widgetContext*/) {};
virtual void Deactivate(winrt::hstring) {};
virtual void OnActionInvoked(winrt::WidgetActionInvokedArgs actionInvokedArgs) {};
virtual void OnWidgetContextChanged(winrt::WidgetContextChangedArgs contextChangedArgs) {};
virtual void OnActionInvoked(winrt::WidgetActionInvokedArgs /*actionInvokedArgs*/) {};
virtual void OnWidgetContextChanged(winrt::WidgetContextChangedArgs /*contextChangedArgs*/) {};
virtual winrt::hstring GetTemplateForWidget() = 0;
virtual winrt::hstring GetDataForWidget() = 0;

Expand Down