зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1062071 - Mark TileInternal's constructor as explicit; r=mattwoodrow
This commit is contained in:
Родитель
749f4537e3
Коммит
6390d21942
|
@ -27,7 +27,7 @@ DrawTargetTiled::Init(const TileSet& aTiles)
|
|||
|
||||
mTiles.reserve(aTiles.mTileCount);
|
||||
for (size_t i = 0; i < aTiles.mTileCount; ++i) {
|
||||
mTiles.push_back(aTiles.mTiles[i]);
|
||||
mTiles.push_back(TileInternal(aTiles.mTiles[i]));
|
||||
if (!aTiles.mTiles[i].mDrawTarget) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ struct TileInternal : public Tile {
|
|||
: mClippedOut(false)
|
||||
{}
|
||||
|
||||
TileInternal(const Tile& aOther)
|
||||
explicit TileInternal(const Tile& aOther)
|
||||
: Tile(aOther)
|
||||
, mClippedOut(false)
|
||||
{}
|
||||
|
|
Загрузка…
Ссылка в новой задаче