Silence Code Analysis warnings about unscoped enums
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
2e68a27d18
commit
980e5c6b2c
2
Updater
2
Updater
@ -1 +1 @@
|
|||||||
Subproject commit 625549838e089c888e2ae60fc83086736f0c715e
|
Subproject commit 6d54c4075b042c3b366949dd0c4e5cf89a77ee53
|
@ -237,8 +237,10 @@ wxZRColaCharSelect::wxZRColaCharSelect(wxWindow* parent) :
|
|||||||
|
|
||||||
wxZRColaCharSelect::~wxZRColaCharSelect()
|
wxZRColaCharSelect::~wxZRColaCharSelect()
|
||||||
{
|
{
|
||||||
if (m_searchThread)
|
if (m_searchThread) {
|
||||||
|
#pragma warning(suppress: 26812) // wxThreadError is unscoped.
|
||||||
m_searchThread->Delete();
|
m_searchThread->Delete();
|
||||||
|
}
|
||||||
|
|
||||||
Disconnect(wxID_ANY, wxEVT_SEARCH_COMPLETE, wxThreadEventHandler(wxZRColaCharSelect::OnSearchComplete), NULL, this);
|
Disconnect(wxID_ANY, wxEVT_SEARCH_COMPLETE, wxThreadEventHandler(wxZRColaCharSelect::OnSearchComplete), NULL, this);
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ wxZRColaUpdater::wxZRColaUpdater(wxWindow* parent) :
|
|||||||
|
|
||||||
// Prepare Updater.
|
// Prepare Updater.
|
||||||
auto app = dynamic_cast<ZRColaApp*>(wxTheApp);
|
auto app = dynamic_cast<ZRColaApp*>(wxTheApp);
|
||||||
|
#pragma warning(suppress: 26812) // wxLanguage is unscoped.
|
||||||
m_updater = new wxUpdCheckThread(app->m_lang_ui == wxLANGUAGE_DEFAULT ? wxT("en_US") : wxLocale::GetLanguageCanonicalName(app->m_lang_ui), this);
|
m_updater = new wxUpdCheckThread(app->m_lang_ui == wxLANGUAGE_DEFAULT ? wxT("en_US") : wxLocale::GetLanguageCanonicalName(app->m_lang_ui), this);
|
||||||
//if (m_updater->Run() != wxTHREAD_NO_ERROR) {
|
//if (m_updater->Run() != wxTHREAD_NO_ERROR) {
|
||||||
// wxFAIL_MSG(wxT("Can't create the thread!"));
|
// wxFAIL_MSG(wxT("Can't create the thread!"));
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit fcfe641d5c52bd6541c4c7e1927db48750910c35
|
Subproject commit d9af15c0e6354b0a20fea901bdd9c7d9d359d1e5
|
Loading…
x
Reference in New Issue
Block a user