diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-17 15:55:56 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-17 15:56:05 +0200 |
| commit | 80ad543963431f47f3fd8ae2d06d2fa32341299e (patch) | |
| tree | 088f01082e3c8ec26e022372082c9bc2e106e94e /fluid/Fl_Function_Type.cxx | |
| parent | 4d94a08bd2fcd681d33bfb51228ace3b432b19ab (diff) | |
FLUID: using symbols instead of integers
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 22ced326b..af9ea3a72 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() && strcmp(child->type_name(), "Function")==0) { + if (!child->is_in_class() && (child->id() == Fl_Type::ID::Function)) { const Fl_Function_Type *fn = (const Fl_Function_Type*)child; if (fn->has_signature(rtype, sig)) return 1; @@ -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 && strcmp(child->type_name(), "Function")==0) { + if (child->level == level+1 && (child->id() == Fl_Type::ID::Function)) { const Fl_Function_Type *fn = (const Fl_Function_Type*)child; if (fn->has_signature(rtype, sig)) return 1; |
