diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-12-06 02:29:57 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-12-06 02:29:57 +0100 |
| commit | 5e7ed2f6534bf8d99688e375c56f44f792bdf7bb (patch) | |
| tree | bd59017682dad0a5887faf4b6cfe0bc8389ca9c6 /fluid/nodes/Node.cxx | |
| parent | b2746ad28693d61cecaa1e9fb57ab93c0050e3d3 (diff) | |
Fluid: fix class prefix user input check.
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 0b1cb2d4d..7557e61f4 100644 --- a/fluid/nodes/Node.cxx +++ b/fluid/nodes/Node.cxx @@ -889,9 +889,9 @@ void Node::write(fld::io::Project_Writer &f) { f.write_word(type_name()); if (is_class()) { - const char * p = ((Class_Node*)this)->prefix(); - if (p && strlen(p)) - f.write_word(p); + auto p = ((Class_Node*)this)->prefix(); + if (!p.empty()) + f.write_word(p.c_str()); } f.write_word(name()); |
