diff options
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()); |
