wxOS2 warning fixes after daily build log.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: msw/gdiimage.cpp
|
// Name: src/os2/gdiimage.cpp
|
||||||
// Purpose: wxGDIImage implementation
|
// Purpose: wxGDIImage implementation
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -120,7 +120,7 @@ public:
|
|||||||
,int WXUNUSED(nDepth) = 1
|
,int WXUNUSED(nDepth) = 1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return(FALSE);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Save( wxGDIImage* WXUNUSED(pImage)
|
virtual bool Save( wxGDIImage* WXUNUSED(pImage)
|
||||||
@@ -128,7 +128,7 @@ public:
|
|||||||
,int WXUNUSED(nType)
|
,int WXUNUSED(nType)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return(FALSE);
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool Load( wxGDIImage* pImage
|
virtual bool Load( wxGDIImage* pImage
|
||||||
,const wxString& rName
|
,const wxString& rName
|
||||||
@@ -139,7 +139,7 @@ public:
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
wxIcon* pIcon = wxDynamicCast(pImage, wxIcon);
|
wxIcon* pIcon = wxDynamicCast(pImage, wxIcon);
|
||||||
wxCHECK_MSG(pIcon, FALSE, _T("wxIconHandler only works with icons"));
|
wxCHECK_MSG(pIcon, false, _T("wxIconHandler only works with icons"));
|
||||||
|
|
||||||
return LoadIcon( pIcon
|
return LoadIcon( pIcon
|
||||||
,rName
|
,rName
|
||||||
@@ -395,7 +395,7 @@ bool wxBMPFileHandler::LoadFile( wxBitmap* pBitmap,
|
|||||||
int WXUNUSED(nDesiredWidth),
|
int WXUNUSED(nDesiredWidth),
|
||||||
int WXUNUSED(nDesiredHeight) )
|
int WXUNUSED(nDesiredHeight) )
|
||||||
{
|
{
|
||||||
#if wxUSE_IMAGE_LOADING_IN_OS2
|
#if defined(wxUSE_IMAGE_LOADING_IN_OS2) && wxUSE_IMAGE_LOADING_IN_OS2
|
||||||
wxPalette* pPalette = NULL;
|
wxPalette* pPalette = NULL;
|
||||||
|
|
||||||
bool bSuccess = false; /* wxLoadIntoBitmap( WXSTRINGCAST rName
|
bool bSuccess = false; /* wxLoadIntoBitmap( WXSTRINGCAST rName
|
||||||
@@ -422,7 +422,7 @@ bool wxBMPFileHandler::SaveFile( wxBitmap* pBitmap,
|
|||||||
int WXUNUSED(nType),
|
int WXUNUSED(nType),
|
||||||
const wxPalette* pPal )
|
const wxPalette* pPal )
|
||||||
{
|
{
|
||||||
#if wxUSE_IMAGE_LOADING_IN_OS2
|
#if defined(wxUSE_IMAGE_LOADING_IN_OS2) && wxUSE_IMAGE_LOADING_IN_OS2
|
||||||
wxPalette* pActualPalette = (wxPalette *)pPal;
|
wxPalette* pActualPalette = (wxPalette *)pPal;
|
||||||
|
|
||||||
if (!pActualPalette)
|
if (!pActualPalette)
|
||||||
@@ -450,7 +450,7 @@ bool wxICOFileHandler::LoadIcon( wxIcon* pIcon,
|
|||||||
int WXUNUSED(nDesiredWidth),
|
int WXUNUSED(nDesiredWidth),
|
||||||
int WXUNUSED(nDesiredHeight) )
|
int WXUNUSED(nDesiredHeight) )
|
||||||
{
|
{
|
||||||
#if wxUSE_RESOURCE_LOADING_IN_OS2
|
#if defined(wxUSE_RESOURCE_LOADING_IN_OS2) && wxUSE_RESOURCE_LOADING_IN_OS2
|
||||||
pIcon->UnRef();
|
pIcon->UnRef();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: settings.cpp
|
// Name: src/os2/settings.cpp
|
||||||
// Purpose: wxSettings
|
// Purpose: wxSettings
|
||||||
// Author: David Webster
|
// Author: David Webster
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -62,7 +62,7 @@ wxArrayString wxSystemSettingsModule::sm_optionValues;
|
|||||||
|
|
||||||
bool wxSystemSettingsModule::OnInit()
|
bool wxSystemSettingsModule::OnInit()
|
||||||
{
|
{
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxSystemSettingsModule::OnExit()
|
void wxSystemSettingsModule::OnExit()
|
||||||
@@ -287,6 +287,8 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index,
|
|||||||
// TODO case wxSYS_PENWINDOWS_PRESENT:
|
// TODO case wxSYS_PENWINDOWS_PRESENT:
|
||||||
// TODO case wxSYS_SHOW_SOUNDS:
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
// TODO case wxSYS_SWAP_BUTTONS:
|
// TODO case wxSYS_SWAP_BUTTONS:
|
||||||
|
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
return -1; // unsupported metric
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
|
@@ -58,12 +58,11 @@ static const wxChar eHOSTNAME[] = _T("HostName");
|
|||||||
// functions beyond those provided by WinSock
|
// functions beyond those provided by WinSock
|
||||||
|
|
||||||
// Get full hostname (eg. DoDo.BSn-Germany.crg.de)
|
// Get full hostname (eg. DoDo.BSn-Germany.crg.de)
|
||||||
bool wxGetHostName(
|
bool wxGetHostName( wxChar* zBuf, int nMaxSize )
|
||||||
wxChar* zBuf
|
|
||||||
, int nMaxSize
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
#if wxUSE_NET_API
|
if (!zBuf) return false;
|
||||||
|
|
||||||
|
#if defined(wxUSE_NET_API) && wxUSE_NET_API
|
||||||
char zServer[256];
|
char zServer[256];
|
||||||
char zComputer[256];
|
char zComputer[256];
|
||||||
unsigned long ulLevel = 0;
|
unsigned long ulLevel = 0;
|
||||||
@@ -94,9 +93,13 @@ bool wxGetHostName(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
wxStrncpy(zBuf, zSysname, nMaxSize - 1);
|
wxStrncpy(zBuf, zSysname, nMaxSize - 1);
|
||||||
|
}
|
||||||
|
|
||||||
zBuf[nMaxSize] = _T('\0');
|
zBuf[nMaxSize] = _T('\0');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return *zBuf ? true : false;
|
return *zBuf ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -238,29 +238,7 @@ long wxExecute(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxGetFullHostName( wxChar* zBuf,
|
bool wxGetFullHostName( wxChar* zBuf, int nMaxSize)
|
||||||
int nMaxSize)
|
|
||||||
{
|
{
|
||||||
#if wxUSE_NET_API
|
return wxGetHostName( zBuf, nMaxSize );
|
||||||
char zServer[256];
|
|
||||||
char zComputer[256];
|
|
||||||
unsigned long ulLevel = 0;
|
|
||||||
unsigned char* zBuffer = NULL;
|
|
||||||
unsigned long ulBuffer = 256;
|
|
||||||
unsigned long* pulTotalAvail = NULL;
|
|
||||||
|
|
||||||
NetBios32GetInfo( (const unsigned char*)zServer
|
|
||||||
,(const unsigned char*)zComputer
|
|
||||||
,ulLevel
|
|
||||||
,zBuffer
|
|
||||||
,ulBuffer
|
|
||||||
,pulTotalAvail
|
|
||||||
);
|
|
||||||
strncpy(zBuf, zComputer, nMaxSize);
|
|
||||||
zBuf[nMaxSize] = _T('\0');
|
|
||||||
#else
|
|
||||||
wxUnusedVar(nMaxSize);
|
|
||||||
strcpy((char*)zBuf, "noname");
|
|
||||||
#endif
|
|
||||||
return *zBuf ? true : false;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user