X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..673e6120795e4e1f3a49157581925a5ee14bf5a9:/src/common/paper.cpp diff --git a/src/common/paper.cpp b/src/common/paper.cpp index d8775f2c62..faa4941dbb 100644 --- a/src/common/paper.cpp +++ b/src/common/paper.cpp @@ -59,7 +59,7 @@ wxPrintPaperType::wxPrintPaperType() { m_paperId = wxPAPER_NONE; m_platformId = 0; - m_paperName = ""; + m_paperName = wxT(""); m_width = 0; m_height = 0; } @@ -192,46 +192,46 @@ wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(const wxString& name) { wxNode *node = Find(name); if (node) - return (wxPrintPaperType *)node->Data(); + return (wxPrintPaperType *)node->GetData(); else return (wxPrintPaperType *) NULL; } wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(wxPaperSize id) { - wxNode *node = First(); + wxNode *node = GetFirst(); while (node) { - wxPrintPaperType* paperType = (wxPrintPaperType*) node->Data(); + wxPrintPaperType* paperType = (wxPrintPaperType*) node->GetData(); if (paperType->GetId() == id) return paperType; - node = node->Next(); + node = node->GetNext(); } return (wxPrintPaperType *) NULL; } wxPrintPaperType *wxPrintPaperDatabase::FindPaperTypeByPlatformId(int id) { - wxNode *node = First(); + wxNode *node = GetFirst(); while (node) { - wxPrintPaperType* paperType = (wxPrintPaperType*) node->Data(); + wxPrintPaperType* paperType = (wxPrintPaperType*) node->GetData(); if (paperType->GetPlatformId() == id) return paperType; - node = node->Next(); + node = node->GetNext(); } return (wxPrintPaperType *) NULL; } wxPrintPaperType *wxPrintPaperDatabase::FindPaperType(const wxSize& sz) { - wxNode *node = First(); + wxNode *node = GetFirst(); while (node) { - wxPrintPaperType* paperType = (wxPrintPaperType*) node->Data(); + wxPrintPaperType* paperType = (wxPrintPaperType*) node->GetData(); if (paperType->GetSize() == sz) return paperType; - node = node->Next(); + node = node->GetNext(); } return (wxPrintPaperType *) NULL; }