From 54e29ef9c1110a0ce5fc49c20142ce2ba938cfe0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 3 Jun 2004 10:03:30 +0000 Subject: [PATCH] bool if enough for true/false results. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/opengl/penguin/lw.cpp | 6 +++--- samples/opengl/penguin/lw.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/opengl/penguin/lw.cpp b/samples/opengl/penguin/lw.cpp index 5d548e556f..fa9a3827e1 100644 --- a/samples/opengl/penguin/lw.cpp +++ b/samples/opengl/penguin/lw.cpp @@ -236,7 +236,7 @@ static void read_pnts(FILE *f, int nbytes, lwObject *lwo) -int lw_is_lwobject(const char *lw_file) +bool lw_is_lwobject(const char *lw_file) { FILE *f = fopen(lw_file, "rb"); if (f) { @@ -245,9 +245,9 @@ int lw_is_lwobject(const char *lw_file) wxInt32 lwob = read_long(f); fclose(f); if (form == ID_FORM && nlen != 0 && lwob == ID_LWOB) - return TRUE; + return true; } - return FALSE; + return false; } diff --git a/samples/opengl/penguin/lw.h b/samples/opengl/penguin/lw.h index ebe5bda2d3..0a4ca382d9 100644 --- a/samples/opengl/penguin/lw.h +++ b/samples/opengl/penguin/lw.h @@ -62,7 +62,7 @@ extern "C" { #endif #if wxUSE_GLCANVAS -int lw_is_lwobject(const char *lw_file); +bool lw_is_lwobject(const char *lw_file); lwObject *lw_object_read(const char *lw_file); void lw_object_free( lwObject *lw_object); void lw_object_show(const lwObject *lw_object); -- 2.45.2