X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3b81044ee30ead362ba6e1bf95af13248afe41c..2c17722ec8a15d93ef9ec4a4ff390a0db9a34d9d:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index a846442f68..7551b99905 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -457,7 +457,7 @@ public: wxCoord *x, wxCoord *y, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, - wxFont *theFont = NULL) const + const wxFont *theFont = NULL) const { DoGetTextExtent(string, x, y, descent, externalLeading, theFont); } wxSize GetTextExtent(const wxString& string) const @@ -472,7 +472,7 @@ public: wxCoord *width, wxCoord *height, wxCoord *heightLine = NULL, - wxFont *font = NULL) const; + const wxFont *font = NULL) const; wxSize GetMultiLineTextExtent(const wxString& string) const { @@ -640,7 +640,7 @@ public: long *x, long *y, long *descent = NULL, long *externalLeading = NULL, - wxFont *theFont = NULL) const + const wxFont *theFont = NULL) const { wxCoord x2, y2, descent2, externalLeading2; DoGetTextExtent(string, &x2, &y2, @@ -807,7 +807,7 @@ protected: wxCoord *x, wxCoord *y, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, - wxFont *theFont = NULL) const = 0; + const wxFont *theFont = NULL) const = 0; virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const;