Skip to content

Commit

Permalink
Fixing iterator type (const/mutable) in GradientColorMap
Browse files Browse the repository at this point in the history
Trying to store a const iterator in a mutable iterator
  • Loading branch information
rolanddenis committed May 6, 2020
1 parent 3abea95 commit a005ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DGtal/io/colormaps/GradientColorMap.ih
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ DGtal::GradientColorMap<PValue,PDefaultPreset,PDefaultFirstColor,PDefaultLastCol
out << "[GradientColorMap "
<< " min=" << myMin
<< " max=" << myMax;
std::vector<Color>::iterator it = myColors.begin();
std::vector<Color>::const_iterator it = myColors.begin();
while ( it != myColors.end() ) {
out << " RGB("
<< it->red() << ","
Expand Down

0 comments on commit a005ca3

Please sign in to comment.