diff options
| author | Matthias Melcher <github@matthiasm.com> | 2026-01-05 12:54:12 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2026-01-05 21:06:04 +0100 |
| commit | 89aa5726f8d772e0fec1ebcbdfa3b74aa7a217f8 (patch) | |
| tree | 2bb2c31e1b283d33a1bff29aa3a105362f2a9435 /fluid/nodes/Node.cxx | |
| parent | 5f10939cfa0fc943dfc28b441efa9e9028eef5e5 (diff) | |
Fluid: Improve std::string output
Fluid: Update Widget_Node to std::string
Fluid: Image names to std::string
Fluid: std::string tooltip
Fluid: stringify Widget_Node::subtype
Fluid:: extra_code
Diffstat (limited to 'fluid/nodes/Node.cxx')
| -rw-r--r-- | fluid/nodes/Node.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/nodes/Node.cxx b/fluid/nodes/Node.cxx index a84528b59..61d736f83 100644 --- a/fluid/nodes/Node.cxx +++ b/fluid/nodes/Node.cxx @@ -136,7 +136,7 @@ void print_project_tree() { for (Node *t = Fluid.proj.tree.first; t; t = t->next) { for (int i = t->level; i > 0; i--) fprintf(stderr, ". "); - fprintf(stderr, "%s\n", subclassname(t)); + fprintf(stderr, "%s\n", subclassname(t).c_str()); } } #endif @@ -783,7 +783,7 @@ int Node::msgnum() { for (count = 0, p = this; p;) { if (p->label()) count ++; - if (p != this && p->is_widget() && ((Widget_Node *)p)->tooltip()) count ++; + if (p != this && p->is_widget() && !((Widget_Node *)p)->tooltip().empty()) count ++; if (p->prev) p = p->prev; else p = p->parent; @@ -904,7 +904,7 @@ void Node::write(fld::io::Project_Writer &f) { if (is_class()) { auto p = ((Class_Node*)this)->prefix(); if (!p.empty()) - f.write_word(p.c_str()); + f.write_word(p); } f.write_word(name()); |
