void wxColourData::SetCustomColour(int i, const wxColour& colour)
{
- wxCHECK_RET( i >= 0 && i < NUM_CUSTOM, _T("custom colour index out of range") );
+ wxCHECK_RET( i >= 0 && i < NUM_CUSTOM, wxT("custom colour index out of range") );
m_custColours[i] = colour;
}
wxColour wxColourData::GetCustomColour(int i) const
{
wxCHECK_MSG( i >= 0 && i < NUM_CUSTOM, wxColour(0,0,0),
- _T("custom colour index out of range") );
+ wxT("custom colour index out of range") );
return m_custColours[i];
}
void wxPrintData::SetPrivData( char *privData, int len )
{
- if (m_privData)
- {
- delete [] m_privData;
- m_privData = NULL;
- }
+ wxDELETEA(m_privData);
m_privDataLen = len;
if (m_privDataLen > 0)
{
m_nativeData = data.GetNativeData();
m_nativeData->m_ref++;
- if (m_privData)
- {
- delete [] m_privData;
- m_privData = NULL;
- }
+ wxDELETEA(m_privData);
m_privDataLen = data.GetPrivDataLen();
if (m_privDataLen > 0)
{