bool if enough for true/false results.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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");
|
FILE *f = fopen(lw_file, "rb");
|
||||||
if (f) {
|
if (f) {
|
||||||
@@ -245,9 +245,9 @@ int lw_is_lwobject(const char *lw_file)
|
|||||||
wxInt32 lwob = read_long(f);
|
wxInt32 lwob = read_long(f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
if (form == ID_FORM && nlen != 0 && lwob == ID_LWOB)
|
if (form == ID_FORM && nlen != 0 && lwob == ID_LWOB)
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -62,7 +62,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_GLCANVAS
|
#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);
|
lwObject *lw_object_read(const char *lw_file);
|
||||||
void lw_object_free( lwObject *lw_object);
|
void lw_object_free( lwObject *lw_object);
|
||||||
void lw_object_show(const lwObject *lw_object);
|
void lw_object_show(const lwObject *lw_object);
|
||||||
|
Reference in New Issue
Block a user