зеркало из https://github.com/mozilla/gecko-dev.git
Bug 975823, part 13 - Make BFSTableData::predecessor into an AutoPtr. r=mcmanus
This commit is contained in:
Родитель
87a5bcbc2c
Коммит
ff0ad57874
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "nsStreamConverterService.h"
|
||||
#include "nsIComponentRegistrar.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsDeque.h"
|
||||
|
@ -55,16 +56,12 @@ struct BFSTableData {
|
|||
nsCStringKey *key;
|
||||
BFScolors color;
|
||||
int32_t distance;
|
||||
nsCStringKey *predecessor;
|
||||
nsAutoPtr<nsCStringKey> predecessor;
|
||||
|
||||
explicit BFSTableData(nsCStringKey* aKey)
|
||||
: key(aKey), color(white), distance(-1), predecessor(nullptr)
|
||||
: key(aKey), color(white), distance(-1)
|
||||
{
|
||||
}
|
||||
|
||||
~BFSTableData() {
|
||||
delete predecessor;
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче