diff --git a/src/Gui/Clipping.cpp b/src/Gui/Clipping.cpp index 11f9c9708b..8d054eceb5 100644 --- a/src/Gui/Clipping.cpp +++ b/src/Gui/Clipping.cpp @@ -74,6 +74,7 @@ public: clipView->plane.setValue(SbPlane(SbVec3f(0,0,1),0)); clipView->ref(); + node = 0; sensor = new SoTimerSensor(moveCallback, this); } ~Private() diff --git a/src/Mod/Image/Gui/GLImageBox.h b/src/Mod/Image/Gui/GLImageBox.h index 32a50644a8..ecd32d83ca 100644 --- a/src/Mod/Image/Gui/GLImageBox.h +++ b/src/Mod/Image/Gui/GLImageBox.h @@ -19,8 +19,8 @@ #ifndef GLIMAGEBOX_H #define GLIMAGEBOX_H -#include -#include +#include +#include namespace ImageGui { @@ -75,7 +75,7 @@ public: unsigned int pixValToMapIndex(double PixVal); Q_SIGNALS: - void drawGraphics(); + void drawGraphics(); private: diff --git a/src/Mod/Image/Gui/ImageView.h b/src/Mod/Image/Gui/ImageView.h index aed86b7dae..58d2e8cc08 100644 --- a/src/Mod/Image/Gui/ImageView.h +++ b/src/Mod/Image/Gui/ImageView.h @@ -44,7 +44,7 @@ public: virtual ~ImageView(); const char *getName(void) const {return "ImageView";} - void onUpdate(void){}; + void onUpdate(void){} bool onMsg(const char* ,const char** ){ return true; } bool onHasMsg(const char* ) const { return false; } diff --git a/src/Mod/Mesh/Gui/MeshSelection.cpp b/src/Mod/Mesh/Gui/MeshSelection.cpp index 513d9e2e3e..0d85c0ee81 100644 --- a/src/Mod/Mesh/Gui/MeshSelection.cpp +++ b/src/Mod/Mesh/Gui/MeshSelection.cpp @@ -465,7 +465,7 @@ void MeshSelection::selectGLCallback(void * ud, SoEventCallback * n) std::list views = self->getViewProviders(); for (std::list::iterator it = views.begin(); it != views.end(); ++it) { - ViewProviderMesh* vp = static_cast(*it); + ViewProviderMesh* vp = *it; std::vector faces; const Mesh::MeshObject& mesh = static_cast((*it)->getObject())->Mesh.getValue(); diff --git a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h index f4ab9ebb78..d6f9a7d752 100644 --- a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h +++ b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h @@ -55,7 +55,7 @@ public: protected: // Force using the reference count mechanism. - virtual ~SoFCIndexedFaceSet() {}; + virtual ~SoFCIndexedFaceSet() {} virtual void GLRender(SoGLRenderAction *action); void drawCoords(const SoGLCoordinateElement * const vertexlist, const int32_t *vertexindices,