Bug 1855926 - Removed unnecessary c_str()'s r=andi

Differential Revision: https://phabricator.services.mozilla.com/D191559
This commit is contained in:
a5855 2023-10-24 13:45:38 +00:00
parent 6ca2c41aee
commit df57c7356a

View file

@ -58,11 +58,11 @@ void UIPruneSavedDumps(const string& directory) {
while (dumpfiles.size() > kSaveCount) {
// get the path of the oldest file
string path = dumpfiles[dumpfiles.size() - 1].path;
UIDeleteFile(path.c_str());
UIDeleteFile(path);
// s/.dmp/.extra/
path.replace(path.size() - 4, 4, ".extra");
UIDeleteFile(path.c_str());
UIDeleteFile(path);
dumpfiles.pop_back();
}