diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-17 20:40:55 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-17 20:41:04 +0200 |
| commit | 2279f85824b0f13eb47ef79459937c47c1f295c1 (patch) | |
| tree | 24ada40294007afa985ca67d35ec9b82060ce7b7 /fluid/Fl_Function_Type.cxx | |
| parent | 9bdc7139daef8d9dc7b7e06503cd810d44b6d69c (diff) | |
FLUID: restores g++98 compatibility
I want enum classes, sigh.
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 af9ea3a72..5b5b3f43b 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->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 && (child->id() == Fl_Type::ID::Function)) { + 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; |
