Merge pull request #6774 from janisozaur/fixes

Various code improvements
This commit is contained in:
Hielke Morsink authored and GitHub committed 2018-05-15 14:38:43 +02:00
commit 6c65c3d64d
32 files changed
+77 -122

No files matched your search

+1 -3
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();