From d03d74f6ae5adf21dae09bc9938b77bcff36a569 Mon Sep 17 00:00:00 2001 From: logari81 Date: Mon, 12 Dec 2011 17:45:41 +0000 Subject: [PATCH] + whitespace, typo fixes, tidying up git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5278 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Base/Axis.h | 4 +--- src/Mod/PartDesign/App/FeaturePad.cpp | 6 ------ src/Mod/PartDesign/Gui/Makefile.am | 2 +- src/Mod/PartDesign/Gui/TaskRevolutionParameters.h | 6 +++--- src/Mod/Sketcher/App/Constraint.cpp | 2 +- src/Mod/Sketcher/App/Constraint.h | 6 +++--- src/Mod/Sketcher/App/PropertyConstraintList.h | 2 +- 7 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/Base/Axis.h b/src/Base/Axis.h index be980606c2..54b5d41c07 100644 --- a/src/Base/Axis.h +++ b/src/Base/Axis.h @@ -67,6 +67,4 @@ protected: } // namespace Base -#endif // BASE_AXIS_H - - +#endif // BASE_AXIS_H diff --git a/src/Mod/PartDesign/App/FeaturePad.cpp b/src/Mod/PartDesign/App/FeaturePad.cpp index 0dab92b69e..6c67d461df 100644 --- a/src/Mod/PartDesign/App/FeaturePad.cpp +++ b/src/Mod/PartDesign/App/FeaturePad.cpp @@ -49,18 +49,13 @@ using namespace PartDesign; -const char* Pad::SideEnums[]= {"Positive","Negative",NULL}; - PROPERTY_SOURCE(PartDesign::Pad, PartDesign::Additive) Pad::Pad() { - //ADD_PROPERTY(Side,((long)0)); - //Side.setEnums(SideEnums); ADD_PROPERTY(Length,(100.0)); ADD_PROPERTY(Reversed,(0)); ADD_PROPERTY(MirroredExtent,(0)); - } short Pad::mustExecute() const @@ -118,7 +113,6 @@ App::DocumentObjectExecReturn *Pad::execute(void) if (SupportLink && SupportLink->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) SupportObject = static_cast(SupportLink); - TopoDS_Shape aFace = makeFace(wires); if (aFace.IsNull()) return new App::DocumentObjectExecReturn("Creating a face from sketch failed"); diff --git a/src/Mod/PartDesign/Gui/Makefile.am b/src/Mod/PartDesign/Gui/Makefile.am index 7eabd93691..34fc278568 100644 --- a/src/Mod/PartDesign/Gui/Makefile.am +++ b/src/Mod/PartDesign/Gui/Makefile.am @@ -16,7 +16,7 @@ BUILT_SOURCES=\ ui_TaskPocketParameters.h \ ui_TaskFilletParameters.h \ ui_TaskHoleParameters.h \ - ui_TaskRevolutionParameters.h + ui_TaskRevolutionParameters.h libPartDesignGui_la_UI=\ TaskChamfer.ui \ diff --git a/src/Mod/PartDesign/Gui/TaskRevolutionParameters.h b/src/Mod/PartDesign/Gui/TaskRevolutionParameters.h index 3cbd595bd6..71d396428b 100644 --- a/src/Mod/PartDesign/Gui/TaskRevolutionParameters.h +++ b/src/Mod/PartDesign/Gui/TaskRevolutionParameters.h @@ -40,7 +40,7 @@ namespace Gui { class ViewProvider; } -namespace PartDesignGui { +namespace PartDesignGui { @@ -92,11 +92,11 @@ public: virtual bool accept(); /// is called by the framework if the dialog is rejected (Cancel) virtual bool reject(); - /// is called by the framework if the user presses the help button + /// is called by the framework if the user presses the help button virtual bool isAllowedAlterDocument(void) const { return false; } - /// returns for Close and Help button + /// returns for Close and Help button virtual QDialogButtonBox::StandardButtons getStandardButtons(void) const { return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; } diff --git a/src/Mod/Sketcher/App/Constraint.cpp b/src/Mod/Sketcher/App/Constraint.cpp index 6cc4fd80a2..92fc804d08 100644 --- a/src/Mod/Sketcher/App/Constraint.cpp +++ b/src/Mod/Sketcher/App/Constraint.cpp @@ -20,7 +20,7 @@ * * ***************************************************************************/ - + #include "PreCompiled.h" #ifndef _PreComp_ #endif diff --git a/src/Mod/Sketcher/App/Constraint.h b/src/Mod/Sketcher/App/Constraint.h index c63062238f..3bfb5e28f5 100644 --- a/src/Mod/Sketcher/App/Constraint.h +++ b/src/Mod/Sketcher/App/Constraint.h @@ -51,7 +51,7 @@ enum ConstraintType { /// define if you want to use the end or start point enum PointPos { none, start, end, mid }; -class SketcherExport Constraint :public Base::Persistence +class SketcherExport Constraint : public Base::Persistence { TYPESYSTEM_HEADER(); @@ -59,7 +59,7 @@ public: ~Constraint(); Constraint(); Constraint(const Constraint&); - virtual Constraint *clone(void)const; + virtual Constraint *clone(void) const; static const int GeoUndef; @@ -85,7 +85,7 @@ public: float LabelDistance; }; -} //namespace Part +} //namespace Sketcher #endif // SKETCHER_CONSTRAINT_H diff --git a/src/Mod/Sketcher/App/PropertyConstraintList.h b/src/Mod/Sketcher/App/PropertyConstraintList.h index 7933f3777f..1d8778f59c 100644 --- a/src/Mod/Sketcher/App/PropertyConstraintList.h +++ b/src/Mod/Sketcher/App/PropertyConstraintList.h @@ -41,7 +41,7 @@ namespace Sketcher { class Constraint; -class SketcherExport PropertyConstraintList: public App::PropertyLists +class SketcherExport PropertyConstraintList : public App::PropertyLists { TYPESYSTEM_HEADER();