Skip to content

Commit f0ec882

Browse files
committedNov 24, 2020
Minor modification.
1 parent e2f292c commit f0ec882

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎Sources/WindowsReferenceApp/Application.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "ResourceIds.hpp"
66
#include "CommandIds.hpp"
77

8-
static bool UnsavedChangesContinue (HWND hwnd, LPCWSTR caption)
8+
static bool ContinueWithNoSave (HWND hwnd, LPCWSTR caption)
99
{
1010
std::wstring text = L"You have made some changes that are not saved.\nWould you like to continue?";
1111
int result = MessageBox (hwnd, text.c_str (), caption, MB_ICONWARNING | MB_YESNO);
@@ -31,7 +31,7 @@ void Application::Init (HWND hwnd)
3131
void Application::New (HWND hwnd)
3232
{
3333
if (nodeEditor.NeedToSave ()) {
34-
bool result = UnsavedChangesContinue (hwnd, L"New File");
34+
bool result = ContinueWithNoSave (hwnd, L"New File");
3535
if (!result) {
3636
return;
3737
}
@@ -42,7 +42,7 @@ void Application::New (HWND hwnd)
4242
void Application::Open (HWND hwnd)
4343
{
4444
if (nodeEditor.NeedToSave ()) {
45-
bool result = UnsavedChangesContinue (hwnd, L"Open File");
45+
bool result = ContinueWithNoSave (hwnd, L"Open File");
4646
if (!result) {
4747
return;
4848
}
@@ -67,7 +67,7 @@ void Application::Save (HWND hwnd)
6767
bool Application::Close (HWND hwnd)
6868
{
6969
if (nodeEditor.NeedToSave ()) {
70-
return UnsavedChangesContinue (hwnd, L"Quit");
70+
return ContinueWithNoSave (hwnd, L"Quit");
7171
}
7272
return true;
7373
}

0 commit comments

Comments
 (0)