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