summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-13 00:01:53 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-13 00:01:53 -0300
commit6c0e98a2727d07e1fbb38b78c27d68e98ad09465 (patch)
tree12764ca986c9a1943bc2012b0cc751471773f6ee /Project/MainFrame.cpp
parent196389a70ef3a03aa8764b9532812a17dd55014b (diff)
downloadPSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.gz
PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.xz
PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.zip
Device context implemented
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index 51f6592..345d10b 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -39,7 +39,7 @@
#include "artProvider/ArtMetro.h"
#include "WorkspaceDC.h"
-MainFrame::MainFrame() : MainFrameBase(NULL) {}
+MainFrame::MainFrame() : MainFrameBase(nullptr) {}
MainFrame::MainFrame(wxWindow* parent, wxLocale* locale, PropertiesData* initProperties, wxString openPath)
: MainFrameBase(parent)
{
@@ -77,12 +77,12 @@ MainFrame::~MainFrame()
// if(m_artMetro) delete m_artMetro;
if(m_addElementsMenu) {
m_addElementsMenu->Disconnect(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnAddElementsClick),
- NULL, this);
+ nullptr, this);
delete m_addElementsMenu;
}
if(m_stabilityMenu) {
m_stabilityMenu->Disconnect(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OnStabilityMenuClick),
- NULL, this);
+ nullptr, this);
delete m_stabilityMenu;
}
if(m_locale) delete m_locale;
@@ -556,7 +556,7 @@ void MainFrame::NotebookPageClosing(wxAuiNotebookEvent& event)
auto it = m_workspaceList.begin();
while(it != m_workspaceList.end()) {
if(*it == m_auiNotebook->GetCurrentPage()) {
- if((*it)->GetSharedGLContext() == m_sharedGLContext) m_sharedGLContext = NULL;
+ if((*it)->GetSharedGLContext() == m_sharedGLContext) m_sharedGLContext = nullptr;
m_workspaceList.erase(it);
break;
}