Cleanup
This commit is contained in:
parent
16026e75cf
commit
9e5d52f92d
|
@ -232,5 +232,5 @@ UTF8& UTF8::operator+=( unsigned w_ch )
|
|||
m_s += substr.m_s;
|
||||
}
|
||||
|
||||
return (UTF8&) *this;
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -578,6 +578,9 @@ public:
|
|||
m_events.push_back( aSingleEvent );
|
||||
}
|
||||
|
||||
///> Copy an existing TOOL_EVENT_LIST
|
||||
TOOL_EVENT_LIST( const TOOL_EVENT_LIST& aEventList ) = default;
|
||||
|
||||
/**
|
||||
* Function Format()
|
||||
* Returns information about event in form of a human-readable string.
|
||||
|
|
|
@ -128,21 +128,21 @@ public:
|
|||
{
|
||||
m_s += str.m_s;
|
||||
MAYBE_VERIFY_UTF8( c_str() );
|
||||
return (UTF8&) *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
UTF8& operator+=( char ch )
|
||||
{
|
||||
m_s.operator+=( ch );
|
||||
MAYBE_VERIFY_UTF8( c_str() );
|
||||
return (UTF8&) *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
UTF8& operator+=( const char* s )
|
||||
{
|
||||
m_s.operator+=( s );
|
||||
MAYBE_VERIFY_UTF8( c_str() );
|
||||
return (UTF8&) *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Append a wide (unicode) char to the UTF8 string.
|
||||
|
|
|
@ -118,6 +118,8 @@ public:
|
|||
virtual ~SHAPE_LINE_CHAIN()
|
||||
{}
|
||||
|
||||
SHAPE_LINE_CHAIN& operator=(const SHAPE_LINE_CHAIN&) = default;
|
||||
|
||||
SHAPE* Clone() const override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -107,6 +107,13 @@ public:
|
|||
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
|
||||
/// issues.
|
||||
template <typename CastedType>
|
||||
|
|
Loading…
Reference in New Issue