Remove unneeded variable initializations in wxPM code.
Closes #14724. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -558,17 +558,12 @@ void wxOS2SelectMatchingFontByName(
|
|||||||
nIndex = 0;
|
nIndex = 0;
|
||||||
for(i = 0, nIs = 0; i < nNumFonts; i++)
|
for(i = 0, nIs = 0; i < nNumFonts; i++)
|
||||||
{
|
{
|
||||||
int nEmHeight = 0;
|
|
||||||
int nXHeight = 0;
|
|
||||||
|
|
||||||
anDiff[0] = wxGpiStrcmp((wxChar*)pFM[i].szFacename, zFontFaceName);
|
anDiff[0] = wxGpiStrcmp((wxChar*)pFM[i].szFacename, zFontFaceName);
|
||||||
anDiff[1] = abs(pFM[i].lEmHeight - nPointSize);
|
anDiff[1] = abs(pFM[i].lEmHeight - nPointSize);
|
||||||
anDiff[2] = abs(pFM[i].usWeightClass - usWeightClass);
|
anDiff[2] = abs(pFM[i].usWeightClass - usWeightClass);
|
||||||
anDiff[3] = abs((pFM[i].fsSelection & 0x2f) - fsSelection);
|
anDiff[3] = abs((pFM[i].fsSelection & 0x2f) - fsSelection);
|
||||||
if(anDiff[0] == 0)
|
if(anDiff[0] == 0)
|
||||||
{
|
{
|
||||||
nEmHeight = (int)pFM[i].lEmHeight;
|
|
||||||
nXHeight =(int)pFM[i].lXHeight;
|
|
||||||
if( (nIs & 0x01) == 0)
|
if( (nIs & 0x01) == 0)
|
||||||
{
|
{
|
||||||
nIs = 1;
|
nIs = 1;
|
||||||
|
@@ -1071,9 +1071,8 @@ MRESULT EXPENTRY wxFrameMainWndProc( HWND hWnd,
|
|||||||
{
|
{
|
||||||
MRESULT rc = (MRESULT)0;
|
MRESULT rc = (MRESULT)0;
|
||||||
bool bProcessed = false;
|
bool bProcessed = false;
|
||||||
wxFrame* pWnd = NULL;
|
|
||||||
|
|
||||||
pWnd = (wxFrame*) wxFindWinFromHandle((WXHWND) hWnd);
|
wxFrame* pWnd = (wxFrame*) wxFindWinFromHandle((WXHWND) hWnd);
|
||||||
switch (ulMsg)
|
switch (ulMsg)
|
||||||
{
|
{
|
||||||
case WM_QUERYFRAMECTLCOUNT:
|
case WM_QUERYFRAMECTLCOUNT:
|
||||||
|
@@ -263,7 +263,6 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter & items,
|
|||||||
void **clientData,
|
void **clientData,
|
||||||
wxClientDataType type)
|
wxClientDataType type)
|
||||||
{
|
{
|
||||||
long lIndex = 0;
|
|
||||||
LONG lIndexType = 0;
|
LONG lIndexType = 0;
|
||||||
bool incrementPos = false;
|
bool incrementPos = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user