projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some compilers don't like statics in inline functions, even if they're const -- repla...
[wxWidgets.git]
/
src
/
os2
/
pen.cpp
diff --git
a/src/os2/pen.cpp
b/src/os2/pen.cpp
index 77badbd512ec44d2e4de8745851c962ac470fb95..a19f195160122f7423026a1ccf4c876e30370feb 100644
(file)
--- a/
src/os2/pen.cpp
+++ b/
src/os2/pen.cpp
@@
-151,16
+151,16
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Unable to set current color table to RGB mode. Error: %s\n"
, sError.c_str());
+ wxLogError(
_T("Unable to set current color table to RGB mode. Error: %s\n")
, sError.c_str());
return FALSE;
}
if (M_PENDATA->m_nStyle == wxTRANSPARENT)
{
return FALSE;
}
if (M_PENDATA->m_nStyle == wxTRANSPARENT)
{
- return
TRUE
;
+ return
true
;
}
}
- COLORREF
vPmColour = 0L;
- USHORT
uLineType =
wx2os2PenStyle(M_PENDATA->m_nStyle);
+ COLORREF vPmColour = 0L;
+ USHORT
uLineType = (USHORT)
wx2os2PenStyle(M_PENDATA->m_nStyle);
vPmColour = M_PENDATA->m_vColour.GetPixel();
vPmColour = M_PENDATA->m_vColour.GetPixel();
@@
-215,7
+215,7
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Can't set Gpi attributes for a LINEBUNDLE. Error: %s\n"
, sError.c_str());
+ wxLogError(
_T("Can't set Gpi attributes for a LINEBUNDLE. Error: %s\n")
, sError.c_str());
return FALSE;
}
return FALSE;
}
@@
-300,11
+300,12
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Can't set Gpi attributes for an AREABUNDLE. Error: %s\n"
, sError.c_str());
+ wxLogError(
_T("Can't set Gpi attributes for an AREABUNDLE. Error: %s\n")
, sError.c_str());
}
}
- return bOk;
+
+ return (bool)bOk;
}
}
- return
FALSE
;
+ return
false
;
} // end of wxPen::RealizeResource
WXHANDLE wxPen::GetResourceHandle()
} // end of wxPen::RealizeResource
WXHANDLE wxPen::GetResourceHandle()
@@
-315,16
+316,14
@@
WXHANDLE wxPen::GetResourceHandle()
return (WXHANDLE)M_PENDATA->m_hPen;
} // end of wxPen::GetResourceHandle
return (WXHANDLE)M_PENDATA->m_hPen;
} // end of wxPen::GetResourceHandle
-bool wxPen::FreeResource(
- bool bForce
-)
+bool wxPen::FreeResource( bool WXUNUSED(bForce) )
{
if (M_PENDATA && (M_PENDATA->m_hPen != 0))
{
M_PENDATA->m_hPen = 0;
{
if (M_PENDATA && (M_PENDATA->m_hPen != 0))
{
M_PENDATA->m_hPen = 0;
- return
TRUE
;
+ return
true
;
}
}
- else return
FALSE
;
+ else return
false
;
} // end of wxPen::FreeResource
bool wxPen::IsFree() const
} // end of wxPen::FreeResource
bool wxPen::IsFree() const
@@
-406,10
+405,8
@@
void wxPen::SetStipple(
RealizeResource();
} // end of wxPen::SetStipple
RealizeResource();
} // end of wxPen::SetStipple
-void wxPen::SetDashes(
- int nNbDashes
-, const wxDash* pDash
-)
+void wxPen::SetDashes( int WXUNUSED(nNbDashes),
+ const wxDash* WXUNUSED(pDash) )
{
//
// Does nothing under OS/2
{
//
// Does nothing under OS/2
@@
-473,5
+470,3
@@
int wx2os2PenStyle(
}
return nPMStyle;
} // end of wx2os2PenStyle
}
return nPMStyle;
} // end of wx2os2PenStyle
-
-