do not use Ok(); use IsOk() instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-10 18:00:53 +00:00
parent 880706bedd
commit eb2b6166df
3 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ public:
/** /**
Returns @true if the metafile is valid. Returns @true if the metafile is valid.
*/ */
bool Ok(); bool IsOk();
/** /**
Plays the metafile into the given device context, returning Plays the metafile into the given device context, returning
@@ -114,7 +114,7 @@ public:
@code @code
wxMetafileDC dc; wxMetafileDC dc;
if (dc.Ok()) if (dc.IsOk())
{ {
Draw(dc, false); Draw(dc, false);
wxMetafile *mf = dc.Close(); wxMetafile *mf = dc.Close();

View File

@@ -73,7 +73,7 @@
overall theme, use: overall theme, use:
@code @code
wxColour col = notebook->GetThemeBackgroundColour(); wxColour col = notebook->GetThemeBackgroundColour();
if (col.Ok()) if (col.IsOk())
{ {
page->SetBackgroundColour(col); page->SetBackgroundColour(col);
} }

View File

@@ -42,7 +42,7 @@
ctrl-GetStyle(ctrl->GetInsertionPoint(), attr); ctrl-GetStyle(ctrl->GetInsertionPoint(), attr);
wxString currentFontName; wxString currentFontName;
if (attr.HasFont() && attr.GetFont().Ok()) if (attr.HasFont() && attr.GetFont().IsOk())
currentFontName = attr.GetFont().GetFaceName(); currentFontName = attr.GetFont().GetFaceName();
// Don't set the initial font in the dialog (so the user is choosing // Don't set the initial font in the dialog (so the user is choosing