X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4609ee2ef8b7787ba5241602b38759ff32e6777d..e17206f71b41034cadb28419af637f0d7ca682f1:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index dcb097a6d7..05b9c77a25 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -17,15 +17,15 @@ #include "wx/html/htmltag.h" -#ifndef WXPRECOMP +#ifndef WX_PRECOMP #include "wx/colour.h" + #include "wx/wxcrtvararg.h" #endif #include "wx/html/htmlpars.h" #include // for vsscanf #include - //----------------------------------------------------------------------------- // wxHtmlTagsCache //----------------------------------------------------------------------------- @@ -407,7 +407,15 @@ wxString wxHtmlTag::GetParam(const wxString& par, bool with_commas) const } int wxHtmlTag::ScanParam(const wxString& par, - const wxChar *format, + const char *format, + void *param) const +{ + wxString parval = GetParam(par); + return wxSscanf(parval, format, param); +} + +int wxHtmlTag::ScanParam(const wxString& par, + const wchar_t *format, void *param) const { wxString parval = GetParam(par);