Skip to content

Commit

Permalink
Fix Win32 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Jan 17, 2017
1 parent 0ccbebc commit eead5fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions workshop/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ void CMainWindow::SaveWindowRect()
CAppConfig::GetInstance().SetPreferenceBoolean(PREF_MAINWINDOW_MAXIMIZED, windowPlacement.showCmd == SW_SHOWMAXIMIZED);
}

void CMainWindow::Destroy()
unsigned int CMainWindow::Destroy()
{
for(const auto& documentPair : m_documents)
{
documentPair.second->Destroy();
}
m_documents.clear();
SaveWindowRect();
CWindow::Destroy();
return CWindow::Destroy();
}

void CMainWindow::SaveCurrentDocument()
Expand Down
2 changes: 1 addition & 1 deletion workshop/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CMainWindow : public Framework::Win32::CDialog

void LoadWindowRect();
void SaveWindowRect();
void Destroy();
unsigned int Destroy() override;

void SaveCurrentDocument();

Expand Down

0 comments on commit eead5fe

Please sign in to comment.