From 0f6f26c54e5e9072791f7ea8e6e2e6739f25c8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 2 Jul 2014 10:55:35 +0000 Subject: [PATCH] cppcheck warning git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19060 383ad7c9-94d9-4d36-a494-682f7c89f535 --- common/BaseObjectData.cc | 2 +- common/BaseObjectData.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/BaseObjectData.cc b/common/BaseObjectData.cc index 4ece1652..760f7706 100644 --- a/common/BaseObjectData.cc +++ b/common/BaseObjectData.cc @@ -290,7 +290,7 @@ void BaseObjectData::getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax){ bbmax = (ACG::Vec3d) act.bbMax(); } -void BaseObjectData::setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode, bool _force) { +void BaseObjectData::setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode, const bool& _force) { // Set draw mode for this object ACG::SceneGraph::SetDrawModesAction actionActive(_mode, _force); diff --git a/common/BaseObjectData.hh b/common/BaseObjectData.hh index 318d346f..f000677f 100644 --- a/common/BaseObjectData.hh +++ b/common/BaseObjectData.hh @@ -203,7 +203,7 @@ class DLLEXPORT BaseObjectData : public BaseObject * @param _mode The draw mode that should be active for this object * @param _force If true, the mode is set ignoring if its supported by the node and its subnodes */ - void setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode, bool _force = false); + void setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode, const bool& _force = false); private : -- GitLab