diff --git a/scene/elementInOut.cc b/scene/elementInOut.cc index 3dd1a79e231cdcc8d5e013071d90ffa58dde83c5..9a089236a80d0e662ab35135dee293320b888775 100644 --- a/scene/elementInOut.cc +++ b/scene/elementInOut.cc @@ -52,6 +52,8 @@ #include "../parser/element.hh" #include "../parser/context.hh" +#include + //== NAMESPACES =============================================================== namespace VSI { @@ -88,6 +90,17 @@ ElementInOut::ElementInOut (InOut *_io, SceneElement *_parent): descText_->setHorizontalStretch (true); } + +ElementInOut::ElementInOut(const ElementInOut& _orig) : + io_(NULL), + element_(NULL), + conn_(NULL), + typeText_(NULL), + descText_(NULL) +{ + std::cerr << "Illegal use of copy constructor in class ElementInOut, which is not implemented yet!" << std::endl; +}; + //------------------------------------------------------------------------------ /// Destructor diff --git a/scene/elementInOut.hh b/scene/elementInOut.hh index 9386e1e199bd25d957fedb16413776640e5eafbf..253f331d4c1c339d213b800c5dacdcf98eb59d31 100644 --- a/scene/elementInOut.hh +++ b/scene/elementInOut.hh @@ -106,12 +106,16 @@ class ElementInOut { bool validConnection (ElementInOut *_e); /// InOut context object - InOut *inOut () const { return io_; }; + InOut* inOut () const { return io_; }; /// Scene element - SceneElement *element () { return element_; }; + SceneElement* element() { return element_; }; private: + + /// Private copy constructor to avoid accidental copy + ElementInOut( const ElementInOut& _orig ); + InOut *io_; SceneElement *element_; @@ -126,4 +130,4 @@ class ElementInOut { } //============================================================================= -#endif \ No newline at end of file +#endif