Skip to content

Commit

Permalink
Dont write static properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kodenamekrak committed Nov 13, 2024
1 parent aed072e commit e1a081f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/generate/members_serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ impl Sortable for CppConstructorImpl {

impl Writable for CppPropertyDecl {
fn write(&self, writer: &mut super::writer::CppWriter) -> color_eyre::Result<()> {
if !self.instance {
return Ok(())
}

let mut prefix_modifiers: Vec<&str> = vec![];
let suffix_modifiers: Vec<&str> = vec![];

Expand All @@ -561,10 +565,6 @@ impl Writable for CppPropertyDecl {
property_vec.push(format!("put={setter}"));
}

if !self.instance {
prefix_modifiers.push("static");
}

let property = property_vec.join(", ");
let ty = &self.prop_ty;
let identifier = &self.cpp_name;
Expand Down

0 comments on commit e1a081f

Please sign in to comment.