Make some member functions const

This commit is contained in:
Paul Cornett
2021-03-17 09:44:48 -07:00
parent 34473971bb
commit b5d4c6068e
13 changed files with 34 additions and 34 deletions

View File

@@ -82,28 +82,28 @@ public:
void AddPaperType(wxPaperSize paperId, int platformId, const wxString& name, int w, int h);
// Find by name
wxPrintPaperType *FindPaperType(const wxString& name);
wxPrintPaperType *FindPaperType(const wxString& name) const;
// Find by size id
wxPrintPaperType *FindPaperType(wxPaperSize id);
wxPrintPaperType *FindPaperType(wxPaperSize id) const;
// Find by platform id
wxPrintPaperType *FindPaperTypeByPlatformId(int id);
wxPrintPaperType *FindPaperTypeByPlatformId(int id) const;
// Find by size
wxPrintPaperType *FindPaperType(const wxSize& size);
wxPrintPaperType *FindPaperType(const wxSize& size) const;
// Convert name to size id
wxPaperSize ConvertNameToId(const wxString& name);
wxPaperSize ConvertNameToId(const wxString& name) const;
// Convert size id to name
wxString ConvertIdToName(wxPaperSize paperId);
wxString ConvertIdToName(wxPaperSize paperId) const;
// Get the paper size
wxSize GetSize(wxPaperSize paperId);
wxSize GetSize(wxPaperSize paperId) const;
// Get the paper size
wxPaperSize GetSize(const wxSize& size);
wxPaperSize GetSize(const wxSize& size) const;
//
wxPrintPaperType* Item(size_t index) const;