forked from mirrors/gecko-dev
Bug 1855926 - Removed unnecessary c_str()'s r=andi
Differential Revision: https://phabricator.services.mozilla.com/D191559
This commit is contained in:
parent
6ca2c41aee
commit
df57c7356a
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue