Skip to content

Commit

Permalink
+ remove 'using namespace Attacher' inside header file
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 13, 2016
1 parent 0a7ab4e commit df48d16
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/Mod/Part/App/AttachableObject.h
Expand Up @@ -42,8 +42,6 @@

#include <gp_Vec.hxx>

using namespace Attacher;

namespace Part
{

Expand All @@ -69,8 +67,8 @@ class PartExport AttachableObject : public Part::Feature
* destroyed, or when a new attacher is set. The default attacher is AttachEngine3D.
* @param attacher. AttachableObject takes ownership and will delete it eventually.
*/
virtual void setAttacher(AttachEngine* attacher);
AttachEngine &attacher(void) const {return *_attacher;}
virtual void setAttacher(Attacher::AttachEngine* attacher);
Attacher::AttachEngine &attacher(void) const {return *_attacher;}

/// if the 2DObject lies on the Face of an other object this links to it
App::PropertyLinkSubList Support;
Expand Down Expand Up @@ -101,7 +99,7 @@ class PartExport AttachableObject : public Part::Feature
void updateAttacherVals();

private:
AttachEngine* _attacher;
Attacher::AttachEngine* _attacher;
};


Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Part/App/Part2DObject.cpp
Expand Up @@ -66,7 +66,7 @@ PROPERTY_SOURCE(Part::Part2DObject, Part::AttachableObject)

Part2DObject::Part2DObject()
{
this->setAttacher(new AttachEngine3D);
this->setAttacher(new Attacher::AttachEngine3D);
}


Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/App/DatumCS.cpp
Expand Up @@ -31,6 +31,7 @@
#include "DatumCS.h"

using namespace PartDesign;
using namespace Attacher;


// ============================================================================
Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/App/DatumPoint.cpp
Expand Up @@ -72,6 +72,7 @@
#endif

using namespace PartDesign;
using namespace Attacher;

// ============================================================================

Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/Gui/Command.cpp
Expand Up @@ -66,6 +66,7 @@
#include "ui_DlgReference.h"

using namespace std;
using namespace Attacher;


//===========================================================================
Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/Gui/TaskFeaturePick.cpp
Expand Up @@ -53,6 +53,7 @@
#include <Mod/Part/App/DatumFeature.h>

using namespace PartDesignGui;
using namespace Attacher;

// TODO Do ve should snap here to App:Part or GeoFeatureGroup/DocumentObjectGroup ? (2015-09-04, Fat-Zer)
const QString TaskFeaturePick::getFeatureStatusString(const featureStatus st)
Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/Gui/Utils.cpp
Expand Up @@ -50,6 +50,7 @@
//===========================================================================
// Helper for Body
//===========================================================================
using namespace Attacher;

namespace PartDesignGui {

Expand Down
1 change: 1 addition & 0 deletions src/Mod/Sketcher/Gui/Command.cpp
Expand Up @@ -56,6 +56,7 @@
using namespace std;
using namespace SketcherGui;
using namespace Part;
using namespace Attacher;


namespace SketcherGui {
Expand Down

0 comments on commit df48d16

Please sign in to comment.