Fixed more cppcheck warnings

This commit is contained in:
Jan Möbius
2016-05-10 15:02:02 +02:00
parent 0837d5d1d0
commit 161d6fe518
6 changed files with 19 additions and 33 deletions

View File

@@ -67,7 +67,8 @@ namespace VDPM {
VHierarchy::
VHierarchy()
VHierarchy() :
n_roots_(0), tree_id_bits_(0)
{
clear();
}

View File

@@ -96,7 +96,7 @@ class VHierarchyNode
{
public:
VHierarchyNode() { }
VHierarchyNode() :radius_(0.0f), sin_square_(0.0f),mue_square_(0.0f), sigma_square_(0.0f) { }
/// Returns true, if node is root else false.
bool is_root() const

View File

@@ -77,27 +77,17 @@ namespace VDPM {
VHierarchyWindow::
VHierarchyWindow()
VHierarchyWindow() :
vhierarchy_(NULL), buffer_(NULL),buffer_min_ (0), buffer_max_(0), window_min_(0), window_max_(0), current_pos_(0) , n_shift_(0)
{
vhierarchy_ = NULL;
buffer_ = NULL;
buffer_min_ = 0;
buffer_max_ = 0;
window_min_ = 0;
window_max_ = 0;
current_pos_ = 0;
n_shift_ = 0;
}
VHierarchyWindow::
VHierarchyWindow(VHierarchy &_vhierarchy)
VHierarchyWindow(VHierarchy &_vhierarchy) :
vhierarchy_(&_vhierarchy),buffer_(NULL),buffer_min_ (0), buffer_max_(0), window_min_(0), window_max_(0) , current_pos_(0) ,n_shift_(0)
{
vhierarchy_ = &_vhierarchy;
buffer_ = NULL;
}

View File

@@ -70,6 +70,9 @@ namespace VDPM {
ViewingParameters::
ViewingParameters()
{
for ( unsigned int i = 0; i < 16; ++i)
modelview_matrix_[i] = 0.0;
fovy_ = 45.0f;
aspect_ = 1.0f;
tolerance_square_ = 0.001f;