Merge pull request #3580 from Tilka/fix_warnings

Fix warnings
This commit is contained in:
Ryan Houdek 2016-01-28 19:12:22 -05:00
commit 88c232aa1b
4 changed files with 5 additions and 7 deletions

View File

@ -131,7 +131,7 @@ void CFrame::ToggleLogConfigWindow(bool bShow)
if (bShow) if (bShow)
{ {
if (!m_LogConfigWindow) if (!m_LogConfigWindow)
m_LogConfigWindow = new LogConfigWindow(this, m_LogWindow, IDM_LOG_CONFIG_WINDOW); m_LogConfigWindow = new LogConfigWindow(this, IDM_LOG_CONFIG_WINDOW);
const int nbIndex = IDM_LOG_CONFIG_WINDOW - IDM_LOG_WINDOW; const int nbIndex = IDM_LOG_CONFIG_WINDOW - IDM_LOG_WINDOW;
DoAddPage(m_LogConfigWindow, DoAddPage(m_LogConfigWindow,

View File

@ -20,9 +20,9 @@
#include "DolphinWX/LogWindow.h" #include "DolphinWX/LogWindow.h"
#include "DolphinWX/WxUtils.h" #include "DolphinWX/WxUtils.h"
LogConfigWindow::LogConfigWindow(wxWindow* parent, CLogWindow *log_window, wxWindowID id) LogConfigWindow::LogConfigWindow(wxWindow* parent, wxWindowID id)
: wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("Log Configuration")) : wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("Log Configuration"))
, m_LogWindow(log_window), enableAll(true) , enableAll(true)
{ {
SetMinSize(wxSize(100, 100)); SetMinSize(wxSize(100, 100));
m_LogManager = LogManager::GetInstance(); m_LogManager = LogManager::GetInstance();

View File

@ -7,7 +7,6 @@
#include <wx/panel.h> #include <wx/panel.h>
class LogManager; class LogManager;
class CLogWindow;
class wxCheckBox; class wxCheckBox;
class wxCheckListBox; class wxCheckListBox;
class wxRadioBox; class wxRadioBox;
@ -15,7 +14,7 @@ class wxRadioBox;
class LogConfigWindow : public wxPanel class LogConfigWindow : public wxPanel
{ {
public: public:
LogConfigWindow(wxWindow* parent, CLogWindow *log_window, wxWindowID id = wxID_ANY); LogConfigWindow(wxWindow* parent, wxWindowID id = wxID_ANY);
~LogConfigWindow(); ~LogConfigWindow();
void SaveSettings(); void SaveSettings();
@ -23,7 +22,6 @@ public:
private: private:
LogManager *m_LogManager; LogManager *m_LogManager;
CLogWindow *m_LogWindow;
bool m_writeFile, m_writeConsole, m_writeWindow; bool m_writeFile, m_writeConsole, m_writeWindow;
bool enableAll; bool enableAll;

View File

@ -35,7 +35,7 @@ static AVFormatContext* s_format_context = nullptr;
static AVStream* s_stream = nullptr; static AVStream* s_stream = nullptr;
static AVFrame* s_src_frame = nullptr; static AVFrame* s_src_frame = nullptr;
static AVFrame* s_scaled_frame = nullptr; static AVFrame* s_scaled_frame = nullptr;
AVPixelFormat s_pix_fmt = AV_PIX_FMT_BGR24; static AVPixelFormat s_pix_fmt = AV_PIX_FMT_BGR24;
static uint8_t* s_yuv_buffer = nullptr; static uint8_t* s_yuv_buffer = nullptr;
static SwsContext* s_sws_context = nullptr; static SwsContext* s_sws_context = nullptr;
static int s_width; static int s_width;