Commit c0af06cb authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15766 383ad7c9-94d9-4d36-a494-682f7c89f535
parent df1b3971
......@@ -515,10 +515,10 @@ void CoordsysNode::getRenderObjects( IRenderer* _renderer, GLState& _state, cons
drawCoordsys(_renderer, &ro);
// set depth buffer to 0 so that nothing can paint over cordsys
ro.modelview = _state.modelview();
ro.priority = -2;
ro.modelview = _state.modelview();
ro.priority = -2;
ro.depthRange = Vec2f(0.0, 0.0);
ro.depthFunc = GL_ALWAYS;
ro.depthFunc = GL_ALWAYS;
ro.glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
// Koordinatensystem zeichnen
......
......@@ -246,11 +246,12 @@ bool DrawMode::operator==(const DrawMode& _mode) const {
return ((modeFlags_ & _mode.modeFlags_).any());
}
void DrawMode::operator =(const DrawMode& _mode) {
DrawMode & DrawMode::operator =(const DrawMode& _mode) {
modeFlags_ = _mode.modeFlags_;
layers_ = _mode.layers_;
layers_ = _mode.layers_;
// checkConsistency();
// checkConsistency();
return (*this);
}
bool DrawMode::operator!=( const DrawMode& _mode2 ) const {
......
......@@ -315,7 +315,7 @@ namespace DrawModes {
/** @name Operators
* @{ */
//===========================================================================
void operator = (const DrawMode& _mode );
DrawMode & operator = (const DrawMode& _mode );
bool operator==(const DrawMode& _mode) const;
......
......@@ -464,7 +464,7 @@ void MaterialPicker::slotMaterialProperties()
if (materialNode_)
return;
QListWidgetItem* item = materialListWidget_->currentItem();
//QListWidgetItem* item = materialListWidget_->currentItem();
materialListWidget_->setDisabled(true);
materialNode_.reset(new MaterialNode());
......
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