Skip to content

Commit 3a85439

Browse files
committed
[Lint] gdalalg_raster_tile.cpp: use std::make_unique<>
1 parent b6e8a94 commit 3a85439

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/gdalalg_raster_tile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ class FakeMaxZoomDataset : public GDALDataset
19011901
for (int i = 1; i <= nBandsIn; ++i)
19021902
{
19031903
SetBand(i,
1904-
new FakeMaxZoomRasterBand(
1904+
std::make_unique<FakeMaxZoomRasterBand>(
19051905
i, nWidth, nHeight, nBlockXSize, nBlockYSize, eDT,
19061906
dstBuffer.data() + static_cast<size_t>(i - 1) *
19071907
nBlockXSize * nBlockYSize *
@@ -2059,7 +2059,7 @@ class MosaicDataset : public GDALDataset
20592059
(i <= static_cast<int>(m_aeColorInterp.size()))
20602060
? m_aeColorInterp[i - 1]
20612061
: GCI_AlphaBand;
2062-
SetBand(i, new MosaicRasterBand(
2062+
SetBand(i, std::make_unique<MosaicRasterBand>(
20632063
this, i, nRasterXSize, nRasterYSize, oTM.mTileWidth,
20642064
oTM.mTileHeight, eDT, eColorInterp, nTileMinX,
20652065
nTileMinY, oTM, convention, directory, extension,

0 commit comments

Comments
 (0)