Skip to content

Commit

Permalink
Remove const keyword from boiling param
Browse files Browse the repository at this point in the history
  • Loading branch information
QuillInkwell committed Feb 3, 2025
1 parent ecefee8 commit 3442e3b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/item_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ bool item_location::can_reload_with( const item_location &ammo, bool now ) const
return reloadable->can_reload_with( *ammo, now );
}

int item_location::get_quality( const std::string &quality, const bool boiling ) const
int item_location::get_quality( const std::string &quality, bool boiling ) const
{
const item_location tool = *this;
quality_id qualityid( quality );
Expand Down
2 changes: 1 addition & 1 deletion src/item_location.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class item_location
* @param quality the name of quality to check the level of
* @param boiling true if the item is required to be empty to have the boiling quality
*/
int get_quality( const std::string &quality, const bool boiling ) const;
int get_quality( const std::string &quality, bool boiling ) const;

private:
class impl;
Expand Down
2 changes: 1 addition & 1 deletion src/talker.h
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ class const_talker
virtual int climate_control_str_chill() const {
return 0;
}
virtual int get_quality( const std::string &, const bool ) const {
virtual int get_quality( const std::string &, bool ) const {
return 0;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/talker_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int talker_item_const::get_weight() const
return units::to_milligram( me_it_const->get_item()->weight() );
}

int talker_item_const::get_quality( const std::string &quality, const bool boiling ) const
int talker_item_const::get_quality( const std::string &quality, bool boiling ) const
{
return me_it_const->get_quality( quality, boiling );
}
Expand Down
2 changes: 1 addition & 1 deletion src/talker_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class talker_item_const: public const_talker_cloner<talker_item_const>
int encumbrance_at( bodypart_id & ) const override;
int get_volume() const override;
int get_weight() const override;
int get_quality( const std::string &, const bool boiling ) const override;
int get_quality( const std::string &, bool boiling ) const override;

private:
const item_location *me_it_const{};
Expand Down

0 comments on commit 3442e3b

Please sign in to comment.