use emplace_back instead of push_back where justified
This commit is contained in:
@@ -589,7 +589,7 @@ std::vector<Base::FileInfo> FileInfo::getDirectoryContent(void) const
|
||||
{
|
||||
std::string dir = dentry->d_name;
|
||||
if (dir != "." && dir != "..")
|
||||
List.push_back(FileInfo(FileName + "/" + dir));
|
||||
List.emplace_back(FileName + "/" + dir);
|
||||
}
|
||||
closedir(dp);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user