Skip to content

Commit 878ddea

Browse files
committed
std::string -> std::string_view
As per clang-tidy
1 parent ce479ad commit 878ddea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/monstergenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ struct special_attacks_reader : generic_typed_reader<special_attacks_reader> {
824824
}
825825
};
826826

827-
void mtype::load( const JsonObject &jo, const std::string &src )
827+
void mtype::load( const JsonObject &jo, const std::string_view src )
828828
{
829829
MonsterGenerator &gen = MonsterGenerator::generator();
830830

src/mtype.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ struct mtype {
605605
void faction_display( catacurses::window &w, const point &top_left, int width ) const;
606606

607607
// Historically located in monstergenerator.cpp
608-
void load( const JsonObject &jo, const std::string &src );
608+
void load( const JsonObject &jo, std::string_view src );
609609
};
610610

611611
#endif // CATA_SRC_MTYPE_H

0 commit comments

Comments
 (0)