Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <[email protected]>
Signed-off-by: Katie Mummah <[email protected]>
  • Loading branch information
nuclearkatie and gonuke authored Sep 12, 2024
1 parent 45e8af9 commit 8abc7a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/res_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ void ResTracker::Extract(ResTracker* removed) {
Record();
}

removed->parent1_ = res_->state_id();
removed->parent2_ = 0;
removed->tracked_ = tracked_;
removed->parent1_ = res_->state_id();
removed->parent2_ = 0;
removed->tracked_ = tracked_;

removed->Record();
}
Expand Down
2 changes: 1 addition & 1 deletion src/res_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ResTracker {
void Package(ResTracker* parent = NULL);

private:
void Record(bool no_bump = false);
void Record(bool bumpId = true);

int parent1_;
int parent2_;
Expand Down
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 {
/// Returns the package id.
virtual std::string package_name() { return Package::unpackaged_name(); };

virtual Ptr PackageExtract(double qty, std::string new_package_name = Package::unpackaged_name()) = 0;
virtual Ptr PackageExtract(double qty, std::string new_package_name) = 0;

/// Changes the product's package id
virtual void ChangePackage(std::string new_package_name = Package::unpackaged_name()) {};
Expand Down

0 comments on commit 8abc7a7

Please sign in to comment.