From 790703293de34ea4bcde0721c0e11d93566b3bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 30 May 2014 09:45:28 +0000 Subject: [PATCH] Lots of cppcheck fixes git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18765 383ad7c9-94d9-4d36-a494-682f7c89f535 --- BasePlugin/PluginFunctions.cc | 2 +- BasePlugin/PluginFunctionsViewControls.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BasePlugin/PluginFunctions.cc b/BasePlugin/PluginFunctions.cc index 9c1c919b..81a23204 100644 --- a/BasePlugin/PluginFunctions.cc +++ b/BasePlugin/PluginFunctions.cc @@ -426,7 +426,7 @@ QPoint mapToLocal( const QPoint _point ) { return examiner_widgets_[activeExaminer_]->glMapFromGlobal(_point); } -void setDrawMode( const ACG::SceneGraph::DrawModes::DrawMode _mode , int _viewer) { +void setDrawMode( const ACG::SceneGraph::DrawModes::DrawMode _mode& , int _viewer) { if ( _viewer == ACTIVE_VIEWER ) viewerProperties(activeExaminer()).drawMode(_mode); diff --git a/BasePlugin/PluginFunctionsViewControls.hh b/BasePlugin/PluginFunctionsViewControls.hh index 119fcce2..fad6b1a2 100644 --- a/BasePlugin/PluginFunctionsViewControls.hh +++ b/BasePlugin/PluginFunctionsViewControls.hh @@ -356,7 +356,7 @@ void perspectiveProjection( int _viewer = ALL_VIEWERS ); * @param _mode New drawmode of the given viewer */ DLLEXPORT -void setDrawMode( const ACG::SceneGraph::DrawModes::DrawMode _mode , int _viewer = ALL_VIEWERS); +void setDrawMode( const ACG::SceneGraph::DrawModes::DrawMode& _mode , int _viewer = ALL_VIEWERS); /** \brief Get the current draw Mode of a Viewer * -- GitLab