fix format string errors

master
an 2019-07-10 05:01:05 -04:00
parent f91bce56b8
commit 0faeaa0f91
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ private:"
} }
writeln!( writeln!(
h, h,
" explicit {}(bool owned, {1} *parent); " explicit {0}(bool owned, {1} *parent);
public: public:
explicit {0}({1} *parent = nullptr); explicit {0}({1} *parent = nullptr);
~{0}();", ~{0}();",
@ -385,7 +385,7 @@ fn write_cpp_object(w: &mut Vec<u8>, o: &Object, conf: &Config) -> Result<()> {
let lcname = snake_case(&o.name); let lcname = snake_case(&o.name);
writeln!( writeln!(
w, w,
"{1}::{0}(bool /*owned*/, {2} *parent): "{0}::{0}(bool /*owned*/, {2} *parent):
{1}(parent),", {1}(parent),",
o.name, o.name,
base_type(o).0, base_type(o).0,