don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -504,7 +504,7 @@ void wxPageSetupDialogData::SetPrintData(const wxPrintData& printData)
|
||||
// paper id
|
||||
void wxPageSetupDialogData::CalculateIdFromPaperSize()
|
||||
{
|
||||
wxASSERT_MSG( (wxThePrintPaperDatabase != (wxPrintPaperDatabase*) NULL),
|
||||
wxASSERT_MSG( (wxThePrintPaperDatabase != NULL),
|
||||
wxT("wxThePrintPaperDatabase should not be NULL. Do not create global print dialog data objects.") );
|
||||
|
||||
wxSize sz = GetPaperSize();
|
||||
@@ -519,7 +519,7 @@ void wxPageSetupDialogData::CalculateIdFromPaperSize()
|
||||
// Use paper id in wxPrintData to set this object's paper size
|
||||
void wxPageSetupDialogData::CalculatePaperSizeFromId()
|
||||
{
|
||||
wxASSERT_MSG( (wxThePrintPaperDatabase != (wxPrintPaperDatabase*) NULL),
|
||||
wxASSERT_MSG( (wxThePrintPaperDatabase != NULL),
|
||||
wxT("wxThePrintPaperDatabase should not be NULL. Do not create global print dialog data objects.") );
|
||||
|
||||
wxSize sz = wxThePrintPaperDatabase->GetSize(m_printData.GetPaperId());
|
||||
|
||||
Reference in New Issue
Block a user