fix format string errors
parent
f91bce56b8
commit
0faeaa0f91
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue