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/Function_Node.h | |
| 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/Function_Node.h')
| -rw-r--r-- | fluid/nodes/Function_Node.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fluid/nodes/Function_Node.h b/fluid/nodes/Function_Node.h index ec1aadbfe..be16e5414 100644 --- a/fluid/nodes/Function_Node.h +++ b/fluid/nodes/Function_Node.h @@ -150,7 +150,7 @@ public: bool is_a(Type inType) const override { return (inType==Type::CodeBlock) ? true : super::is_a(inType); } void write_properties(fld::io::Project_Writer &f) override; void read_property(fld::io::Project_Reader &f, const char *) override; - std::string end_code() { return end_code_; } + std::string end_code() const { return end_code_; } void end_code(const std::string& c) { storestring(c, end_code_); } }; @@ -212,7 +212,7 @@ public: Type type() const override { return Type::Data; } bool is_a(Type inType) const override { return (inType==Type::Data) ? true : super::is_a(inType); } void filename(const std::string& fn) { storestring(fn, filename_); } - std::string filename() { return filename_; } + std::string filename() const { return filename_; } int output_format() { return output_format_; } void output_format(int fmt) { output_format_ = fmt; } }; @@ -253,7 +253,7 @@ public: int is_public() const override; Type type() const override { return Type::DeclBlock; } bool is_a(Type inType) const override { return (inType==Type::DeclBlock) ? true : super::is_a(inType); } - std::string end_code() { return end_code_; } + std::string end_code() const { return end_code_; } void end_code(const std::string& p) { storestring(p, end_code_); } int write_map() { return write_map_; } void write_map(int v) { write_map_ = v; } @@ -328,7 +328,7 @@ public: void read_property(fld::io::Project_Reader &f, const char *) override; /** Get base class access and name. */ - std::string base_class() { return base_class_; } + std::string base_class() const { return base_class_; } /** Set base class access and name, i.e. `public Fl_Widget`. */ void base_class(const std::string& name) { storestring(name, base_class_); } |
