Skip to content

Commit b1b9735

Browse files
authored
Apply suggestions from code review
1 parent b0a648b commit b1b9735

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/gdalalg_raster_viewshed.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535

3636
GDALRasterViewshedAlgorithm::GDALRasterViewshedAlgorithm(bool standaloneStep)
3737
: GDALRasterPipelineNonNativelyStreamingAlgorithm(NAME, DESCRIPTION,
38-
HELP_URL, standaloneStep),
39-
m_opts{}
38+
HELP_URL, standaloneStep)
4039
{
4140
AddArg("position", 'p', _("Observer position"), &m_observerPos)
4241
.AddAlias("pos")

apps/gdalalg_raster_viewshed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class GDALRasterViewshedAlgorithm /* non final */
3838
bool RunStep(GDALRasterPipelineStepRunContext &ctxt) override;
3939

4040
std::vector<double> m_observerPos{};
41-
gdal::viewshed::Options m_opts;
41+
gdal::viewshed::Options m_opts{};
4242

4343
std::string m_outputMode = "normal";
4444
int m_band = 1;

autotest/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ endforeach ()
421421

422422
###
423423

424-
gdal_gtest_target(viewshed_internal_test vit
424+
gdal_gtest_target(viewshed_internal_test test-viewshed-internal
425425
FILES
426426
test_viewshed_internal.cpp
427427
../../alg/viewshed/viewshed.cpp

0 commit comments

Comments
 (0)