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