Skip to content
Snippets Groups Projects
Commit be4f1e7e authored by Fabian Reister's avatar Fabian Reister
Browse files

arviz: fixing compiler warnings (old-style cast)

parent 55277bd6
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,8 @@ namespace viz
InteractionFeedbackRange interactions() const
{
InteractionFeedback* begin = (InteractionFeedback*) data_.interactions.data();
InteractionFeedback* end = begin + data_.interactions.size();
const InteractionFeedback* begin = reinterpret_cast<const InteractionFeedback*>(data_.interactions.data());
const InteractionFeedback* end = begin + data_.interactions.size();
return InteractionFeedbackRange{begin, end};
}
......
......@@ -71,8 +71,8 @@ namespace armarx::viz
PointCloud& points(std::vector<ColoredPoint> const& ps)
{
std::size_t memorySize = ps.size() * sizeof(ps[0]);
Ice::Byte* begin = (Ice::Byte*)ps.data();
Ice::Byte* end = begin + memorySize;
const Ice::Byte* const begin = reinterpret_cast<const Ice::Byte*>(ps.data());
const Ice::Byte* const end = begin + memorySize;
data_->points.assign(begin, end);
return *this;
}
......@@ -92,8 +92,8 @@ namespace armarx::viz
PointCloud& addPointUnchecked(ColoredPoint const& p)
{
Ice::Byte* begin = (Ice::Byte*)&p;
Ice::Byte* end = begin + sizeof(p);
const Ice::Byte* const begin = reinterpret_cast<const Ice::Byte*>(&p);
const Ice::Byte* const end = begin + sizeof(p);
data_->points.insert(data_->points.end(), begin, end);
return *this;
}
......@@ -391,5 +391,3 @@ namespace armarx::viz
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment