Skip to content

Commit

Permalink
needed to set the default
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Mar 23, 2024
1 parent bf8586e commit 4edbc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Resource {
virtual int package_id() { return default_package_id_; };

/// Changes the product's package id
virtual void ChangePackageId(int new_package_id) {};
virtual void ChangePackageId(int new_package_id = default_package_id_ ) {};

protected:
const static int default_package_id_ = 1;
Expand Down

0 comments on commit 4edbc0a

Please sign in to comment.