Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #826 from lioncash/wx-events
DolphinWX: Use the typesafe equivalents for declaring wx event types
  • Loading branch information
lioncash committed Aug 20, 2014
2 parents d29e333 + 6a8dfda commit b5337ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Debugger/CodeView.cpp
Expand Up @@ -38,7 +38,7 @@
#include "DolphinWX/Debugger/CodeView.h"
#include "DolphinWX/Debugger/DebuggerUIUtil.h"

DEFINE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE);
wxDEFINE_EVENT(wxEVT_CODEVIEW_CHANGE, wxCommandEvent);

enum
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Debugger/CodeView.h
Expand Up @@ -16,7 +16,7 @@

#include "Common/Common.h"

DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1);
wxDECLARE_EVENT(wxEVT_CODEVIEW_CHANGE, wxCommandEvent);

class DebugInterface;
class SymbolDB;
Expand Down
7 changes: 2 additions & 5 deletions Source/Core/DolphinWX/FifoPlayerDlg.cpp
Expand Up @@ -45,11 +45,8 @@

class wxWindow;

DECLARE_EVENT_TYPE(RECORDING_FINISHED_EVENT, -1)
DEFINE_EVENT_TYPE(RECORDING_FINISHED_EVENT)

DECLARE_EVENT_TYPE(FRAME_WRITTEN_EVENT, -1)
DEFINE_EVENT_TYPE(FRAME_WRITTEN_EVENT)
wxDEFINE_EVENT(RECORDING_FINISHED_EVENT, wxCommandEvent);
wxDEFINE_EVENT(FRAME_WRITTEN_EVENT, wxCommandEvent);

static std::recursive_mutex sMutex;
wxEvtHandler *volatile FifoPlayerDlg::m_EvtHandler = nullptr;
Expand Down

0 comments on commit b5337ea

Please sign in to comment.