This commit is contained in:
Ian McInerney 2020-01-08 01:49:11 +00:00
parent 16026e75cf
commit 9e5d52f92d
5 changed files with 16 additions and 4 deletions

View File

@ -232,5 +232,5 @@ UTF8& UTF8::operator+=( unsigned w_ch )
m_s += substr.m_s; m_s += substr.m_s;
} }
return (UTF8&) *this; return *this;
} }

View File

@ -578,6 +578,9 @@ public:
m_events.push_back( aSingleEvent ); m_events.push_back( aSingleEvent );
} }
///> Copy an existing TOOL_EVENT_LIST
TOOL_EVENT_LIST( const TOOL_EVENT_LIST& aEventList ) = default;
/** /**
* Function Format() * Function Format()
* Returns information about event in form of a human-readable string. * Returns information about event in form of a human-readable string.

View File

@ -128,21 +128,21 @@ public:
{ {
m_s += str.m_s; m_s += str.m_s;
MAYBE_VERIFY_UTF8( c_str() ); MAYBE_VERIFY_UTF8( c_str() );
return (UTF8&) *this; return *this;
} }
UTF8& operator+=( char ch ) UTF8& operator+=( char ch )
{ {
m_s.operator+=( ch ); m_s.operator+=( ch );
MAYBE_VERIFY_UTF8( c_str() ); MAYBE_VERIFY_UTF8( c_str() );
return (UTF8&) *this; return *this;
} }
UTF8& operator+=( const char* s ) UTF8& operator+=( const char* s )
{ {
m_s.operator+=( s ); m_s.operator+=( s );
MAYBE_VERIFY_UTF8( c_str() ); MAYBE_VERIFY_UTF8( c_str() );
return (UTF8&) *this; return *this;
} }
/// Append a wide (unicode) char to the UTF8 string. /// Append a wide (unicode) char to the UTF8 string.

View File

@ -118,6 +118,8 @@ public:
virtual ~SHAPE_LINE_CHAIN() virtual ~SHAPE_LINE_CHAIN()
{} {}
SHAPE_LINE_CHAIN& operator=(const SHAPE_LINE_CHAIN&) = default;
SHAPE* Clone() const override; SHAPE* Clone() const override;
/** /**

View File

@ -107,6 +107,13 @@ public:
y = (T) aVec.y; y = (T) aVec.y;
} }
/// Copy a vector
VECTOR2( const VECTOR2<T>& aVec )
{
x = aVec.x;
y = aVec.y;
}
/// Casts a vector to another specialized subclass. Beware of rouding /// Casts a vector to another specialized subclass. Beware of rouding
/// issues. /// issues.
template <typename CastedType> template <typename CastedType>