We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff34e34 commit c75e4a7Copy full SHA for c75e4a7
src/worldfactory.cpp
@@ -65,7 +65,7 @@ save_t save_t::from_save_id( const std::string &save_id )
65
return save_t( save_id );
66
}
67
68
-save_t save_t::from_base_path( const std::string &base_path )
+save_t save_t::from_base_path( const std::string_view base_path )
69
{
70
return save_t( base64_decode( base_path ) );
71
src/worldfactory.h
@@ -37,7 +37,7 @@ class save_t
37
std::string base_path() const;
38
39
static save_t from_save_id( const std::string &save_id );
40
- static save_t from_base_path( const std::string &base_path );
+ static save_t from_base_path( std::string_view base_path );
41
42
bool operator==( const save_t &rhs ) const {
43
return name == rhs.name;
0 commit comments