diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-19 20:41:58 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-19 20:42:08 +0200 |
| commit | e8eccde8db246d262d7a9e1c6088cc24e82c84e8 (patch) | |
| tree | 1ce212048c5b6f96e51463cbd9bb3e9ef1813998 /fluid/Fl_Function_Type.cxx | |
| parent | 35728ac9ecab78cc60ca89f9b5a6ad8f864bb8c4 (diff) | |
FLUID: RTTI improvements, 'is_a90' now const, apply RTTI
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 0dfcea456..5b646790a 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -45,7 +45,7 @@ Fl_Class_Type *current_class = NULL; int has_toplevel_function(const char *rtype, const char *sig) { Fl_Type *child; for (child = Fl_Type::first; child; child = child->next) { - if (!child->is_in_class() && (child->id() == Fl_Type::ID_Function)) { + if (!child->is_in_class() && child->is_a(Fl_Type::ID_Function)) { const Fl_Function_Type *fn = (const Fl_Function_Type*)child; if (fn->has_signature(rtype, sig)) return 1; @@ -525,7 +525,7 @@ void Fl_Function_Type::write_code2(Fd_Code_Writer& f) { char havechildren = 0; for (child = next; child && child->level > level; child = child->next) { havechildren = 1; - if (child->is_window() && child->name()) var = child->name(); + if (child->is_a(ID_Window) && child->name()) var = child->name(); } if (ismain()) { @@ -1982,7 +1982,7 @@ void Fl_Class_Type::write_code2(Fd_Code_Writer& f) { int Fl_Class_Type::has_function(const char *rtype, const char *sig) const { Fl_Type *child; for (child = next; child && child->level > level; child = child->next) { - if (child->level == level+1 && (child->id() == Fl_Type::ID_Function)) { + if (child->level == level+1 && child->is_a(Fl_Type::ID_Function)) { const Fl_Function_Type *fn = (const Fl_Function_Type*)child; if (fn->has_signature(rtype, sig)) return 1; |
