Skip to content

Commit 007af62

Browse files
committed
Fix some code style issues.
1 parent 07401f3 commit 007af62

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

NanaBox/ResizeVirtualHardDiskPage.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ namespace winrt::NanaBox::implementation
177177

178178
winrt::handle(Mile::CreateThread([=]()
179179
{
180-
HWND WaitingHandle = ::ShowOperationWaitingWindow(this->m_WindowHandle);
180+
HWND WaitingHandle = ::ShowOperationWaitingWindow(
181+
this->m_WindowHandle);
181182

182183
DWORD Error = ::SimpleResizeVirtualDisk(
183184
Path.c_str(),

NanaBox/Utils.cpp

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,12 @@ void ShowMessageDialog(
416416
return;
417417
}
418418

419-
winrt::NanaBox::MessagePage Window =
420-
winrt::make<winrt::NanaBox::implementation::MessagePage>(
421-
WindowHandle,
422-
InstructionText,
423-
ContentText);
419+
using InstanceType = winrt::NanaBox::MessagePage;
420+
using ImplementationType = winrt::NanaBox::implementation::MessagePage;
421+
InstanceType Window = winrt::make<ImplementationType>(
422+
WindowHandle,
423+
InstructionText,
424+
ContentText);
424425
::ShowXamlDialog(
425426
WindowHandle,
426427
480,
@@ -653,9 +654,9 @@ winrt::handle ShowAboutDialog(
653654
return;
654655
}
655656

656-
winrt::NanaBox::AboutPage Window =
657-
winrt::make<winrt::NanaBox::implementation::AboutPage>(
658-
WindowHandle);
657+
using InstanceType = winrt::NanaBox::AboutPage;
658+
using ImplementationType = winrt::NanaBox::implementation::AboutPage;
659+
InstanceType Window = winrt::make<ImplementationType>(WindowHandle);
659660
::ShowXamlDialog(
660661
WindowHandle,
661662
480,
@@ -680,9 +681,11 @@ winrt::handle ShowNewVirtualHardDiskDialog(
680681
return;
681682
}
682683

683-
winrt::NanaBox::NewVirtualHardDiskPage Window =
684-
winrt::make<winrt::NanaBox::implementation::NewVirtualHardDiskPage>(
685-
WindowHandle);
684+
using InstanceType =
685+
winrt::NanaBox::NewVirtualHardDiskPage;
686+
using ImplementationType =
687+
winrt::NanaBox::implementation::NewVirtualHardDiskPage;
688+
InstanceType Window = winrt::make<ImplementationType>(WindowHandle);
686689
::ShowXamlDialog(
687690
WindowHandle,
688691
480,
@@ -757,9 +760,10 @@ winrt::handle ShowCompactVirtualHardDiskDialog(
757760

758761
try
759762
{
760-
HWND WaitingHandle = ::ShowOperationWaitingWindow(ParentWindowHandle);
763+
HWND WaitingHandle = ::ShowOperationWaitingWindow(
764+
ParentWindowHandle);
761765

762-
DWORD Error = SimpleCompactVirtualDisk(FilePath.c_str());
766+
DWORD Error = ::SimpleCompactVirtualDisk(FilePath.c_str());
763767

764768
if (ERROR_SUCCESS == Error)
765769
{
@@ -804,9 +808,11 @@ winrt::handle ShowResizeVirtualHardDiskDialog(
804808
return;
805809
}
806810

807-
winrt::NanaBox::ResizeVirtualHardDiskPage Window =
808-
winrt::make<winrt::NanaBox::implementation::ResizeVirtualHardDiskPage>(
809-
WindowHandle);
811+
using InstanceType =
812+
winrt::NanaBox::ResizeVirtualHardDiskPage;
813+
using ImplementationType =
814+
winrt::NanaBox::implementation::ResizeVirtualHardDiskPage;
815+
InstanceType Window = winrt::make<ImplementationType>(WindowHandle);
810816
::ShowXamlDialog(
811817
WindowHandle,
812818
480,

0 commit comments

Comments
 (0)