summaryrefslogtreecommitdiff
path: root/fluid/nodes/Node.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 03:20:53 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 03:20:53 +0500
commitddba971ebb304512ba9e0a01b77ec71b59b977b6 (patch)
tree7e681b80b442ec86f19a3e19aa42770198946d35 /fluid/nodes/Node.cxx
parentc19f34db2f4a64326d03cee7edae095051660f65 (diff)
wip
Diffstat (limited to 'fluid/nodes/Node.cxx')
-rw-r--r--fluid/nodes/Node.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/fluid/nodes/Node.cxx b/fluid/nodes/Node.cxx
index 2971bad2d..8e0041f3c 100644
--- a/fluid/nodes/Node.cxx
+++ b/fluid/nodes/Node.cxx
@@ -455,18 +455,6 @@ int storestring(const char *n, const char * & p, int nostrip) {
return 1;
}
-// C++11 version, still using the original to copy all the side effects.
-int storestring(const std::string& n, std::string& p, int nostrip) {
- const char *buffer { 0 };
- int ret = storestring(n.c_str(), buffer);
- if (buffer) {
- p = buffer;
- free((void*)buffer);
- } else {
- p.clear();
- }
- return ret;
-}
/** Update the `visible` flag for `p` and all its descendants.
\param[in] p start here and update all descendants
@@ -902,8 +890,8 @@ void Node::write(fld::io::Project_Writer &f) {
f.write_word(type_name());
if (is_class()) {
- auto p = ((Class_Node*)this)->prefix();
- if (!p.empty())
+ const char *p = ((Class_Node*)this)->prefix();
+ if (p[0])
f.write_word(p);
}