+ remove 'using namespace Attacher' inside header file

This commit is contained in:
wmayer 2016-04-13 15:57:49 +02:00
parent 0a7ab4e1ff
commit df48d1668b
8 changed files with 10 additions and 6 deletions

View File

@ -42,8 +42,6 @@
#include <gp_Vec.hxx> #include <gp_Vec.hxx>
using namespace Attacher;
namespace Part namespace Part
{ {
@ -69,8 +67,8 @@ public:
* destroyed, or when a new attacher is set. The default attacher is AttachEngine3D. * destroyed, or when a new attacher is set. The default attacher is AttachEngine3D.
* @param attacher. AttachableObject takes ownership and will delete it eventually. * @param attacher. AttachableObject takes ownership and will delete it eventually.
*/ */
virtual void setAttacher(AttachEngine* attacher); virtual void setAttacher(Attacher::AttachEngine* attacher);
AttachEngine &attacher(void) const {return *_attacher;} Attacher::AttachEngine &attacher(void) const {return *_attacher;}
/// if the 2DObject lies on the Face of an other object this links to it /// if the 2DObject lies on the Face of an other object this links to it
App::PropertyLinkSubList Support; App::PropertyLinkSubList Support;
@ -101,7 +99,7 @@ public:
void updateAttacherVals(); void updateAttacherVals();
private: private:
AttachEngine* _attacher; Attacher::AttachEngine* _attacher;
}; };

View File

@ -66,7 +66,7 @@ PROPERTY_SOURCE(Part::Part2DObject, Part::AttachableObject)
Part2DObject::Part2DObject() Part2DObject::Part2DObject()
{ {
this->setAttacher(new AttachEngine3D); this->setAttacher(new Attacher::AttachEngine3D);
} }

View File

@ -31,6 +31,7 @@
#include "DatumCS.h" #include "DatumCS.h"
using namespace PartDesign; using namespace PartDesign;
using namespace Attacher;
// ============================================================================ // ============================================================================

View File

@ -72,6 +72,7 @@
#endif #endif
using namespace PartDesign; using namespace PartDesign;
using namespace Attacher;
// ============================================================================ // ============================================================================

View File

@ -66,6 +66,7 @@
#include "ui_DlgReference.h" #include "ui_DlgReference.h"
using namespace std; using namespace std;
using namespace Attacher;
//=========================================================================== //===========================================================================

View File

@ -53,6 +53,7 @@
#include <Mod/Part/App/DatumFeature.h> #include <Mod/Part/App/DatumFeature.h>
using namespace PartDesignGui; using namespace PartDesignGui;
using namespace Attacher;
// TODO Do ve should snap here to App:Part or GeoFeatureGroup/DocumentObjectGroup ? (2015-09-04, Fat-Zer) // TODO Do ve should snap here to App:Part or GeoFeatureGroup/DocumentObjectGroup ? (2015-09-04, Fat-Zer)
const QString TaskFeaturePick::getFeatureStatusString(const featureStatus st) const QString TaskFeaturePick::getFeatureStatusString(const featureStatus st)

View File

@ -50,6 +50,7 @@
//=========================================================================== //===========================================================================
// Helper for Body // Helper for Body
//=========================================================================== //===========================================================================
using namespace Attacher;
namespace PartDesignGui { namespace PartDesignGui {

View File

@ -56,6 +56,7 @@
using namespace std; using namespace std;
using namespace SketcherGui; using namespace SketcherGui;
using namespace Part; using namespace Part;
using namespace Attacher;
namespace SketcherGui { namespace SketcherGui {