Commit 38be518f authored by Jan Möbius's avatar Jan Möbius
Browse files

More cppcheck warnings

parent 310fd861
...@@ -119,46 +119,47 @@ PolyLineT<PointT>:: ...@@ -119,46 +119,47 @@ PolyLineT<PointT>::
/// Copy Constructor /// Copy Constructor
template <class PointT> template <class PointT>
PolyLineT<PointT>:: PolyLineT<PointT>::
PolyLineT( const PolyLineT& _line ) PolyLineT( const PolyLineT& _line ) :
{
closed_ = _line.closed_; //copy points
points_(_line.points_),
//copy points
points_ = _line.points_; closed_(_line.closed_),
//copy vertex properties //copy vertex properties
vnormals_ = _line.vnormals_; vnormals_(_line.vnormals_),
vbinormals_ = _line.vbinormals_; vbinormals_(_line.vbinormals_),
vcolors_ = _line.vcolors_; vcolors_(_line.vcolors_),
vscalars_ = _line.vscalars_; vscalars_(_line.vscalars_),
vselections_ = _line.vselections_; vselections_(_line.vselections_),
vvhandles_ = _line.vvhandles_; vvhandles_(_line.vvhandles_),
vehandles_ = _line.vehandles_; vehandles_(_line.vehandles_),
vfhandles_ = _line.vfhandles_; vfhandles_(_line.vfhandles_),
//copy edge properties //copy edge properties
enormals_ = _line.enormals_; enormals_(_line.enormals_),
ecolors_ = _line.ecolors_; ecolors_(_line.ecolors_),
escalars_ = _line.escalars_; escalars_(_line.escalars_),
eselections_ = _line.eselections_; eselections_(_line.eselections_),
epreimage_direction_ = _line.epreimage_direction_; epreimage_direction_(_line.epreimage_direction_),
// property reference counter // property reference counter
ref_count_vnormals_ = _line.ref_count_vnormals_; ref_count_vnormals_(_line.ref_count_vnormals_),
ref_count_vbinormals_ = _line.ref_count_vbinormals_; ref_count_vbinormals_(_line.ref_count_vbinormals_),
ref_count_vcolors_ = _line.ref_count_vcolors_; ref_count_vcolors_(_line.ref_count_vcolors_),
ref_count_vscalars_ = _line.ref_count_vscalars_; ref_count_vscalars_(_line.ref_count_vscalars_),
ref_count_vselections_ = _line.ref_count_vselections_; ref_count_vselections_(_line.ref_count_vselections_),
ref_count_vvhandles_ = _line.ref_count_vvhandles_; ref_count_vvhandles_(_line.ref_count_vvhandles_),
ref_count_vehandles_ = _line.ref_count_vehandles_; ref_count_vehandles_(_line.ref_count_vehandles_),
ref_count_vfhandles_ = _line.ref_count_vfhandles_; ref_count_vfhandles_(_line.ref_count_vfhandles_),
ref_count_enormals_ = _line.ref_count_enormals_; ref_count_enormals_(_line.ref_count_enormals_),
ref_count_ecolors_ = _line.ref_count_ecolors_; ref_count_ecolors_(_line.ref_count_ecolors_),
ref_count_escalars_ = _line.ref_count_escalars_; ref_count_escalars_(_line.ref_count_escalars_),
ref_count_eselections_ = _line.ref_count_eselections_; ref_count_eselections_(_line.ref_count_eselections_),
ref_count_epreimage_direction_ = _line.ref_count_epreimage_direction_; ref_count_epreimage_direction_(_line.ref_count_epreimage_direction_)
{
// copy custom properties // copy custom properties
for (typename CustomPropertyMap::const_iterator it = _line.custom_properties.begin(); it != _line.custom_properties.end(); ++it) { for (typename CustomPropertyMap::const_iterator it = _line.custom_properties.begin(); it != _line.custom_properties.end(); ++it) {
......
...@@ -88,7 +88,8 @@ PolyLineCollectionNodeT<PolyLineCollection>::PolyLineCollectionNodeT(PolyLineCol ...@@ -88,7 +88,8 @@ PolyLineCollectionNodeT<PolyLineCollection>::PolyLineCollectionNodeT(PolyLineCol
polyline_collection_(_pl), polyline_collection_(_pl),
updateVBO_(true), updateVBO_(true),
sphere_(0), sphere_(0),
total_vertex_count_(0) total_vertex_count_(0),
total_segment_count_(0)
{ {
// Initial default draw mode // Initial default draw mode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment