summaryrefslogtreecommitdiff
path: root/fluid/nodes/Node.cxx
diff options
context:
space:
mode:
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);
}