From 17d77fe8ce99a54cde6ab60a61572ed2a57b0f5f Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 1 Nov 2018 12:11:53 +0100 Subject: [PATCH] Fix various small issues in webrequest sample --- samples/webrequest/webrequest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/webrequest/webrequest.cpp b/samples/webrequest/webrequest.cpp index 0cd6025cac..7e6930d124 100644 --- a/samples/webrequest/webrequest.cpp +++ b/samples/webrequest/webrequest.cpp @@ -45,8 +45,6 @@ public: SetIcon(wxICON(sample)); // Prepare UI controls - - // If menus are not available add a button to access the about box wxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); mainSizer->Add(new wxStaticText(this, wxID_ANY, "Request URL:"), @@ -299,6 +297,9 @@ public: m_downloadStaticText->SetLabel(""); GetStatusBar()->SetStatusText("Cancelled"); break; + + default: + break; } } @@ -332,7 +333,6 @@ public: { if ( !m_currentRequest || m_currentRequest->GetBytesExpectedToReceive() <= 0 ) return; - m_downloadGauge->SetValue((m_currentRequest->GetBytesReceived() * 100) / m_currentRequest->GetBytesExpectedToReceive()); @@ -391,7 +391,7 @@ private: wxTimer m_downloadProgressTimer; wxStaticText* m_advCountStaticText; - long long m_advCount; + wxLongLong m_advCount; }; class WebRequestApp : public wxApp