Skip to content

Commit c75e4a7

Browse files
authored
Appease clang (#83724)
1 parent ff34e34 commit c75e4a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/worldfactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ save_t save_t::from_save_id( const std::string &save_id )
6565
return save_t( save_id );
6666
}
6767

68-
save_t save_t::from_base_path( const std::string &base_path )
68+
save_t save_t::from_base_path( const std::string_view base_path )
6969
{
7070
return save_t( base64_decode( base_path ) );
7171
}

src/worldfactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class save_t
3737
std::string base_path() const;
3838

3939
static save_t from_save_id( const std::string &save_id );
40-
static save_t from_base_path( const std::string &base_path );
40+
static save_t from_base_path( std::string_view base_path );
4141

4242
bool operator==( const save_t &rhs ) const {
4343
return name == rhs.name;

0 commit comments

Comments
 (0)