Avoid harmless unused variable warning in the ownerdrw sample.

MSVC8 gives

.\ownerdrw.cpp(96) : warning C4189: 'pFrame' : local variable is initialized
but not referenced

so just don't define this variable to avoid the warning.
This commit is contained in:
Vadim Zeitlin
2015-04-15 15:52:55 +02:00
parent 25fcb85590
commit cd6fb7a9bd

View File

@@ -92,9 +92,7 @@ bool OwnerDrawnApp::OnInit(void)
if ( !wxApp::OnInit() )
return false;
OwnerDrawnFrame *pFrame
= new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"),
50, 50, 450, 340);
new OwnerDrawnFrame(NULL, "wxWidgets Ownerdraw Sample", 50, 50, 450, 340);
return true;
}