mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Merge pull request #6774 from janisozaur/fixes
Various code improvements
This commit is contained in:
@@ -55,7 +55,7 @@ std::string GetNameFromTrackPath(const std::string &path)
|
||||
{
|
||||
std::string name = Path::GetFileNameWithoutExtension(path);
|
||||
//The track name should be the file name until the first instance of a dot
|
||||
name = name.substr(0, name.find_first_of("."));
|
||||
name = name.substr(0, name.find_first_of('.'));
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -150,8 +150,6 @@ public:
|
||||
Guard::ArgumentNotNull(env);
|
||||
}
|
||||
|
||||
~TrackDesignRepository() = default;
|
||||
|
||||
size_t GetCount() const override
|
||||
{
|
||||
return _items.size();
|
||||
|
||||
Reference in New Issue
Block a user