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