Skip to content

Commit

Permalink
Remove null view check and nullptr keyword usage, add braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Dec 7, 2015
1 parent f646dfb commit 67abd91
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions filters/reprojection/ReprojectionFilter.cpp
Expand Up @@ -126,19 +126,17 @@ void ReprojectionFilter::initialize()
throw pdal_error(oss.str());
}

if (!m_inferInputSRS) createTransform(nullptr);
if (!m_inferInputSRS)
{
createTransform(0);
}
}


void ReprojectionFilter::createTransform(PointView *view)
{
if (m_inferInputSRS)
{
if (!view)
{
throw pdal_error(getName() + ": Cannot infer SRS from empty view");
}

m_inSRS = view->spatialReference();

if (m_inSRS.empty())
Expand Down Expand Up @@ -204,7 +202,10 @@ PointViewSet ReprojectionFilter::run(PointViewPtr view)
PointViewSet viewSet;
PointViewPtr outView = view->makeNew();

if (m_inferInputSRS) createTransform(view.get());
if (m_inferInputSRS)
{
createTransform(view.get());
}

double x, y, z;

Expand Down

0 comments on commit 67abd91

Please sign in to comment.