Fix some build warnings
private field 'm_dwCookie' is not used 'return' will never be executed result of comparison of unsigned enum expression < 0 is always false 'FlushDC' overrides a member function but is not marked 'override' potentially uninitialized local variable 'bound' used
This commit is contained in:
@@ -157,7 +157,6 @@ private:
|
|||||||
wxIEContainer* m_container;
|
wxIEContainer* m_container;
|
||||||
wxAutomationObject m_ie;
|
wxAutomationObject m_ie;
|
||||||
IWebBrowser2* m_webBrowser;
|
IWebBrowser2* m_webBrowser;
|
||||||
DWORD m_dwCookie;
|
|
||||||
wxCOMPtr<DocHostUIHandler> m_uiHandler;
|
wxCOMPtr<DocHostUIHandler> m_uiHandler;
|
||||||
|
|
||||||
//We store the current zoom type;
|
//We store the current zoom type;
|
||||||
|
@@ -82,8 +82,6 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||||||
default:
|
default:
|
||||||
return DefWindowProc(hwnd, msg, wParam, lParam);
|
return DefWindowProc(hwnd, msg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -1713,7 +1713,7 @@ void wxMSWDCImpl::SetLogicalFunction(wxRasterOperationMode function)
|
|||||||
|
|
||||||
void wxMSWDCImpl::SetRop(WXHDC dc)
|
void wxMSWDCImpl::SetRop(WXHDC dc)
|
||||||
{
|
{
|
||||||
if ( !dc || m_logicalFunction < 0 )
|
if ( !dc )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int rop;
|
int rop;
|
||||||
|
@@ -311,7 +311,7 @@ public:
|
|||||||
m_gcdc->SetGraphicsContext(ctx);
|
m_gcdc->SetGraphicsContext(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void FlushDC()
|
virtual void FlushDC() wxOVERRIDE
|
||||||
{
|
{
|
||||||
// Apparently, flushing native Direct2D renderer
|
// Apparently, flushing native Direct2D renderer
|
||||||
// is not enough to update underlying DC (bitmap)
|
// is not enough to update underlying DC (bitmap)
|
||||||
|
@@ -414,7 +414,7 @@ public:
|
|||||||
|
|
||||||
virtual ~ClippingBoxTestCaseGCDCDirect2D() {}
|
virtual ~ClippingBoxTestCaseGCDCDirect2D() {}
|
||||||
|
|
||||||
virtual void FlushDC()
|
virtual void FlushDC() wxOVERRIDE
|
||||||
{
|
{
|
||||||
// Apparently, flushing native Direct2D renderer
|
// Apparently, flushing native Direct2D renderer
|
||||||
// is not enough to update underlying DC (bitmap)
|
// is not enough to update underlying DC (bitmap)
|
||||||
@@ -1616,7 +1616,7 @@ public:
|
|||||||
|
|
||||||
virtual ~ClippingBoxTestCaseGCDirect2D() {}
|
virtual ~ClippingBoxTestCaseGCDirect2D() {}
|
||||||
|
|
||||||
virtual void FlushGC()
|
virtual void FlushGC() wxOVERRIDE
|
||||||
{
|
{
|
||||||
// Apparently, flushing native Direct2D renderer
|
// Apparently, flushing native Direct2D renderer
|
||||||
// is not enough to update underlying DC (bitmap)
|
// is not enough to update underlying DC (bitmap)
|
||||||
|
@@ -126,7 +126,7 @@ void SafeArrayConvertTestCase::VariantListReturnSafeArray()
|
|||||||
wxVariantDataSafeArray*
|
wxVariantDataSafeArray*
|
||||||
vsa = wxStaticCastVariantData(variantCopy.GetData(),
|
vsa = wxStaticCastVariantData(variantCopy.GetData(),
|
||||||
wxVariantDataSafeArray);
|
wxVariantDataSafeArray);
|
||||||
long bound;
|
long bound wxDUMMY_INITIALIZE(0);
|
||||||
|
|
||||||
CPPUNIT_ASSERT( vsa );
|
CPPUNIT_ASSERT( vsa );
|
||||||
CPPUNIT_ASSERT( safeArray.Attach(vsa->GetValue()) );
|
CPPUNIT_ASSERT( safeArray.Attach(vsa->GetValue()) );
|
||||||
@@ -177,7 +177,7 @@ void SafeArrayConvertTestCase::StringsReturnSafeArray()
|
|||||||
wxVariantDataSafeArray*
|
wxVariantDataSafeArray*
|
||||||
vsa = wxStaticCastVariantData(variant.GetData(),
|
vsa = wxStaticCastVariantData(variant.GetData(),
|
||||||
wxVariantDataSafeArray);
|
wxVariantDataSafeArray);
|
||||||
long bound;
|
long bound wxDUMMY_INITIALIZE(0);
|
||||||
|
|
||||||
CPPUNIT_ASSERT( vsa );
|
CPPUNIT_ASSERT( vsa );
|
||||||
CPPUNIT_ASSERT( safeArray.Attach(vsa->GetValue()) );
|
CPPUNIT_ASSERT( safeArray.Attach(vsa->GetValue()) );
|
||||||
|
Reference in New Issue
Block a user