Skip to content
Snippets Groups Projects
Commit 6eb5829e authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Make LLCoordFloater trivially copyable

parent 0f48e8fe
No related branches found
No related tags found
No related merge requests found
...@@ -3541,13 +3541,6 @@ LLCoordFloater::LLCoordFloater(const LLCoordCommon& other, LLFloater& floater) ...@@ -3541,13 +3541,6 @@ LLCoordFloater::LLCoordFloater(const LLCoordCommon& other, LLFloater& floater)
convertFromCommon(other); convertFromCommon(other);
} }
LLCoordFloater& LLCoordFloater::operator=(const LLCoordFloater& other)
{
mFloater = other.mFloater;
coord_t::operator =(other);
return *this;
}
void LLCoordFloater::setFloater(LLFloater& floater) void LLCoordFloater::setFloater(LLFloater& floater)
{ {
mFloater = floater.getHandle(); mFloater = floater.getHandle();
......
...@@ -97,7 +97,7 @@ struct LLCoordFloater : LLCoord<LL_COORD_FLOATER> ...@@ -97,7 +97,7 @@ struct LLCoordFloater : LLCoord<LL_COORD_FLOATER>
{ {
typedef LLCoord<LL_COORD_FLOATER> coord_t; typedef LLCoord<LL_COORD_FLOATER> coord_t;
LLCoordFloater() {} LLCoordFloater() = default;
LLCoordFloater(F32 x, F32 y, LLFloater& floater); LLCoordFloater(F32 x, F32 y, LLFloater& floater);
LLCoordFloater(const LLCoordCommon& other, LLFloater& floater); LLCoordFloater(const LLCoordCommon& other, LLFloater& floater);
...@@ -107,14 +107,10 @@ struct LLCoordFloater : LLCoord<LL_COORD_FLOATER> ...@@ -107,14 +107,10 @@ struct LLCoordFloater : LLCoord<LL_COORD_FLOATER>
return *this; return *this;
} }
LLCoordFloater& operator=(const LLCoordFloater& other);
bool operator==(const LLCoordFloater& other) const; bool operator==(const LLCoordFloater& other) const;
bool operator!=(const LLCoordFloater& other) const { return !(*this == other); } bool operator!=(const LLCoordFloater& other) const { return !(*this == other); }
void setFloater(LLFloater& floater); void setFloater(LLFloater& floater);
}; };
class LLFloater : public LLPanel, public LLInstanceTracker<LLFloater> class LLFloater : public LLPanel, public LLInstanceTracker<LLFloater>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment