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.\n Would 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)
3131void 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)
4242void 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)
6767bool 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