Skip to content

Commit

Permalink
Removed redundant empty declarations and statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Jul 11, 2019
1 parent e38bca4 commit de8ff02
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6567,7 +6567,7 @@ static std::string colorized_trap_name_at( const tripoint &point )
std::string name;
if( !trap.is_null() && trap.get_visibility() <= 1 ) {
name = colorize( trap.name(), trap.color ) + _( " on " );
};
}
return name;
}

Expand Down
4 changes: 2 additions & 2 deletions src/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ template <class element_type, class element_allocator_type = std::allocator<elem
struct ebco_pair2 : allocator_type { // empty-base-class optimisation
size_type capacity; // Total element capacity of all initialized groups
explicit ebco_pair2( const size_type number_of_elements ) noexcept: capacity(
number_of_elements ) {};
number_of_elements ) {}
} element_allocator_pair;

struct ebco_pair : group_allocator_type {
size_type capacity; // Total group capacity
explicit ebco_pair( const size_type number_of_groups ) noexcept: capacity( number_of_groups ) {};
explicit ebco_pair( const size_type number_of_groups ) noexcept: capacity( number_of_groups ) {}
} group_allocator_pair;

group_vector() noexcept:
Expand Down
2 changes: 1 addition & 1 deletion src/magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct fake_spell {
bool self;
fake_spell( const spell_id &sp_id, bool hit_self = false,
const cata::optional<int> &max_level = cata::nullopt ) : id( sp_id ),
max_level( max_level ), self( hit_self ) {};
max_level( max_level ), self( hit_self ) {}
};

class spell_type
Expand Down
2 changes: 1 addition & 1 deletion src/requirements.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct requirement_data {
requirement_data() = default;
requirement_data( const alter_tool_comp_vector &tools, const alter_quali_req_vector &qualities,
const alter_item_comp_vector &components ) : tools( tools ), qualities( qualities ),
components( components ) {};
components( components ) {}

const requirement_id &id() const {
return id_;
Expand Down

0 comments on commit de8ff02

Please sign in to comment.