зеркало из https://github.com/mozilla/gecko-dev.git
fix -pedantic bustage - Delete isn't const, so re-cast "this"
This commit is contained in:
Родитель
f3c2021803
Коммит
51d9e33467
|
@ -281,7 +281,8 @@ nsresult nsFileSpec::Move(const nsFileSpec& inNewParentDirectory) const
|
|||
result = NS_FILE_RESULT(CrudeFileCopy(*this, destPath));
|
||||
if (result == NS_OK)
|
||||
{
|
||||
Delete(PR_FALSE);
|
||||
// cast to fix const-ness
|
||||
((nsFileSpec*)this)->Delete(PR_FALSE);
|
||||
}
|
||||
delete [] destPath;
|
||||
}
|
||||
|
|
|
@ -281,7 +281,8 @@ nsresult nsFileSpec::Move(const nsFileSpec& inNewParentDirectory) const
|
|||
result = NS_FILE_RESULT(CrudeFileCopy(*this, destPath));
|
||||
if (result == NS_OK)
|
||||
{
|
||||
Delete(PR_FALSE);
|
||||
// cast to fix const-ness
|
||||
((nsFileSpec*)this)->Delete(PR_FALSE);
|
||||
}
|
||||
delete [] destPath;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче