Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
5c97e44a
Commit
5c97e44a
authored
Jul 10, 2015
by
John Tourtellott
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move variable declaration inside loop to limit its scope
parent
5e1fc1bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
IO/GDAL/vtkGDALRasterReader.cxx
IO/GDAL/vtkGDALRasterReader.cxx
+1
-1
No files found.
IO/GDAL/vtkGDALRasterReader.cxx
View file @
5c97e44a
...
...
@@ -755,9 +755,9 @@ int vtkGDALRasterReader::RequestData(vtkInformation* vtkNotUsed(request),
noDataArray
->
SetName
(
"NO_DATA_VALUE"
);
noDataArray
->
SetNumberOfComponents
(
1
);
noDataArray
->
SetNumberOfTuples
(
this
->
Implementation
->
NumberOfBands
);
int
success
=
0
;
for
(
int
i
=
0
;
i
<
this
->
Implementation
->
NumberOfBands
;
i
++
)
{
int
success
=
0
;
double
noDataValue
=
this
->
Implementation
->
GDALData
->
GetRasterBand
(
i
+
1
)
->
GetNoDataValue
(
&
success
);
if
(
!
success
)
...
...
Joachim Pouderoux
@jpouderoux
mentioned in commit
f8d2a873
·
Jul 20, 2015
mentioned in commit
f8d2a873
mentioned in commit f8d2a87365f6acaee6fe226804d8809212d492a1
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment