Skip to content

Commit 6577774

Browse files
committed
Rename collection args to itr in pdal/capi/PointViewIterator.cpp
1 parent f5c0929 commit 6577774

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/pdal/capi/PointViewIterator.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ namespace pdal
3131

3232
extern "C"
3333
{
34-
bool PDALHasNextPointView(PDALPointViewIteratorPtr collection)
34+
bool PDALHasNextPointView(PDALPointViewIteratorPtr itr)
3535
{
36-
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(collection);
36+
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(itr);
3737
return ptr && ptr->hasNext();
3838
}
3939

40-
PDALPointViewPtr PDALGetNextPointView(PDALPointViewIteratorPtr collection)
40+
PDALPointViewPtr PDALGetNextPointView(PDALPointViewIteratorPtr itr)
4141
{
42-
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(collection);
42+
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(itr);
4343
PDALPointViewPtr view = nullptr;
4444

4545
if (ptr)
@@ -55,25 +55,25 @@ namespace pdal
5555
return view;
5656
}
5757

58-
void PDALResetPointViewIterator(PDALPointViewIteratorPtr collection)
58+
void PDALResetPointViewIterator(PDALPointViewIteratorPtr itr)
5959
{
60-
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(collection);
60+
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(itr);
6161

6262
if (ptr)
6363
{
6464
ptr->reset();
6565
}
6666
}
6767

68-
void PDALDisposePointViewIterator(PDALPointViewIteratorPtr collection)
68+
void PDALDisposePointViewIterator(PDALPointViewIteratorPtr itr)
6969
{
70-
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(collection);
70+
auto ptr = reinterpret_cast<pdal::capi::PointViewIterator *>(itr);
7171

7272
if (ptr)
7373
{
7474
delete ptr;
7575
ptr = nullptr;
76-
collection = nullptr;
76+
itr = nullptr;
7777
}
7878
}
7979

0 commit comments

Comments
 (0)