diff --git a/apps/openmw/mwworld/esmstore.cpp b/apps/openmw/mwworld/esmstore.cpp index 47e4a156b7..e09c8f260c 100644 --- a/apps/openmw/mwworld/esmstore.cpp +++ b/apps/openmw/mwworld/esmstore.cpp @@ -127,8 +127,6 @@ namespace } } } - - } namespace MWWorld @@ -287,7 +285,7 @@ namespace MWWorld }; - int ESMStore::find(const std::string& id) const + int ESMStore::find(const std::string_view& id) const { IDMap::const_iterator it = mStoreImp->mIds.find(id); if (it == mStoreImp->mIds.end()) { diff --git a/apps/openmw/mwworld/esmstore.hpp b/apps/openmw/mwworld/esmstore.hpp index 6576b82c97..30e77ffce0 100644 --- a/apps/openmw/mwworld/esmstore.hpp +++ b/apps/openmw/mwworld/esmstore.hpp @@ -6,6 +6,8 @@ #include #include +#include + #include "store.hpp" namespace Loading @@ -83,7 +85,7 @@ namespace MWWorld } /// Look up the given ID in 'all'. Returns 0 if not found. - int find(const std::string& id) const; + int find(const std::string_view& id) const; int findStatic(const std::string& id) const;