1
0
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:
Hielke Morsink
2018-05-15 14:38:43 +02:00
committed by GitHub
32 changed files with 77 additions and 122 deletions

View File

@@ -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();