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

cppcheck warnings fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18151 383ad7c9-94d9-4d36-a494-682f7c89f535
parent be75a30b
......@@ -54,7 +54,9 @@ const char *BIGGEST_COMPONENT = "ComponentsPluginBiggestComponent";
/** \brief Constructor
*
*/
ComponentsPlugin::ComponentsPlugin() {}
ComponentsPlugin::ComponentsPlugin():
splitAction_(NULL),
biggestAction_(NULL){}
/*******************************************************************************
BaseInterface implementation
......
......@@ -72,7 +72,7 @@ class ComponentsPlugin : public QObject, BaseInterface, MouseInterface, PickingI
signals:
// BaseInterface
void updateView();
void updatedObject(int _identifier, const UpdateType _type);
void updatedObject(int _identifier, const UpdateType& _type);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
......@@ -85,7 +85,7 @@ class ComponentsPlugin : public QObject, BaseInterface, MouseInterface, PickingI
void getToolBar( QString _name, QToolBar*& _toolbar);
// PickingInterface
void addPickMode( const std::string _mode );
void addPickMode( const std::string& _mode)
//ScriptInterface
void scriptInfo( QString _functionName );
......
......@@ -92,7 +92,6 @@ IdList ComponentsPlugin::splitComponents( int _objectId ) {
int components = MeshInfo::componentCount( mesh );
//create empty meshes
std::vector< TriMesh* > newMeshes;
IdList newIDs;
newIDs.push_back( _objectId );
......@@ -157,7 +156,6 @@ IdList ComponentsPlugin::splitComponents( int _objectId ) {
int components = MeshInfo::componentCount( mesh );
//create empty meshes
std::vector< PolyMesh* > newMeshes;
std::vector< int > newIDs;
if (components == 1){
......
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