Skip to content

Commit

Permalink
Fix unnecessary const qualifiers ignored in casts (#3555)
Browse files Browse the repository at this point in the history
Fix unnecessary const qualifiers ignored in casts
  • Loading branch information
taketwo authored Jan 16, 2020
2 parents c8ea2e2 + b23a9d9 commit 50c4c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pcl::registration::TransformationEstimationPointToPlaneWeighted<PointSource, Poi
const pcl::Correspondences &correspondences,
Matrix4 &transformation_matrix) const
{
const int nr_correspondences = static_cast<const int> (correspondences.size ());
const int nr_correspondences = static_cast<int> (correspondences.size ());
std::vector<int> indices_src (nr_correspondences);
std::vector<int> indices_tgt (nr_correspondences);
for (int i = 0; i < nr_correspondences; ++i)
Expand Down
2 changes: 1 addition & 1 deletion surface/src/3rdparty/opennurbs/opennurbs_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ int ON_String::Replace( char token1, char token2 )

int ON_String::Replace( unsigned char token1, unsigned char token2 )
{
return Replace((const char)token1, (const char)token2);
return Replace((char)token1, (char)token2);
}


Expand Down

0 comments on commit 50c4c1d

Please sign in to comment.