From 6b6070281e837a6dcdbaa9e1243d5e44b0f1ff3e Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 30 Apr 2015 23:16:57 +0200 Subject: [PATCH] + whitespacee/typo fixes --- src/Gui/CommandStd.cpp | 2 +- src/Gui/Document.cpp | 2 +- src/Gui/Document.h | 2 +- src/Gui/MouseSelection.cpp | 3 +-- src/Gui/MouseSelection.h | 2 +- src/Gui/Workbench.cpp | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Gui/CommandStd.cpp b/src/Gui/CommandStd.cpp index ee034d0b8..06a19a463 100644 --- a/src/Gui/CommandStd.cpp +++ b/src/Gui/CommandStd.cpp @@ -209,7 +209,7 @@ Action * StdCmdAbout::createAction(void) pcAction->setShortcut(QString::fromAscii(sAccel)); //Prevent Qt from using AboutRole -- fixes issue #0001485 pcAction->setMenuRole(QAction::ApplicationSpecificRole); - + return pcAction; } diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index 92eb0213d..a77f04aef 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -205,7 +205,7 @@ bool Document::setEdit(Gui::ViewProvider* p, int ModNum) return false; View3DInventor *activeView = dynamic_cast(getActiveView()); - // if the currently active view is not te 3d view search for it and activate it + // if the currently active view is not the 3d view search for it and activate it if (!activeView) { activeView = dynamic_cast(getViewOfViewProvider(p)); if (activeView) diff --git a/src/Gui/Document.h b/src/Gui/Document.h index a81387473..3e985c498 100644 --- a/src/Gui/Document.h +++ b/src/Gui/Document.h @@ -159,7 +159,7 @@ public: /// Attach a view (get called by the MDIView constructor) void attachView(Gui::BaseView* pcView, bool bPassiv=false); /// Detach a view (get called by the MDIView destructor) - void detachView(Gui::BaseView* pcView, bool bPassiv=false); + void detachView(Gui::BaseView* pcView, bool bPassiv=false); /// helper for selection ViewProvider* getViewProviderByPathFromTail(SoPath * path) const; /// call update on all attached views diff --git a/src/Gui/MouseSelection.cpp b/src/Gui/MouseSelection.cpp index a2d53223e..73e7d876f 100644 --- a/src/Gui/MouseSelection.cpp +++ b/src/Gui/MouseSelection.cpp @@ -306,7 +306,7 @@ int PolyPickerSelection::mouseButtonEvent(const SoMouseButtonEvent* const e, con const int button = e->getButton(); const SbBool press = e->getState() == SoButtonEvent::DOWN ? TRUE : FALSE; - if(press) { + if (press) { switch(button) { case SoMouseButtonEvent::BUTTON1: @@ -664,4 +664,3 @@ void BoxZoomSelection::terminate() SbBox2s box(xmin, ymin, xmax, ymax); _pcView3D->boxZoom(box); } - diff --git a/src/Gui/MouseSelection.h b/src/Gui/MouseSelection.h index ccd11ab4e..b48e91cf4 100644 --- a/src/Gui/MouseSelection.h +++ b/src/Gui/MouseSelection.h @@ -171,7 +171,7 @@ class GuiExport BrushSelection : public PolyPickerSelection { public: BrushSelection(); - ~BrushSelection(); + virtual ~BrushSelection(); void setLineWidth(float l); void setClosed(bool c); diff --git a/src/Gui/Workbench.cpp b/src/Gui/Workbench.cpp index ab839cd34..eb9b13361 100644 --- a/src/Gui/Workbench.cpp +++ b/src/Gui/Workbench.cpp @@ -435,7 +435,7 @@ void StdWorkbench::setupContextMenu(const char* recipient, MenuItem* item) const *item << "Separator" << "Std_SetAppearance" << "Std_ToggleVisibility" << "Std_ToggleSelectability" << "Std_TreeSelection" << "Std_RandomColor" << "Separator" << "Std_Delete"; - } + } } else if (strcmp(recipient,"Tree") == 0) {