mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibVideo: Remove MV class's copy assignment overload
This was unnecessary, as the implicit one works correctly.
This commit is contained in:
parent
3ffbe20067
commit
af0584ea53
Notes:
sideshowbarker
2024-07-17 06:08:38 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/af0584ea53 Pull-request: https://github.com/SerenityOS/serenity/pull/15363 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/MacDue Reviewed-by: https://github.com/davidot
@ -14,15 +14,6 @@ MV::MV(u32 row, u32 col)
|
||||
{
|
||||
}
|
||||
|
||||
MV& MV::operator=(MV const& other)
|
||||
{
|
||||
if (this == &other)
|
||||
return *this;
|
||||
m_row = other.row();
|
||||
m_col = other.col();
|
||||
return *this;
|
||||
}
|
||||
|
||||
MV& MV::operator=(i32 value)
|
||||
{
|
||||
m_row = value;
|
||||
|
@ -20,7 +20,6 @@ public:
|
||||
u32 col() const { return m_col; }
|
||||
void set_col(u32 col) { m_col = col; }
|
||||
|
||||
MV& operator=(MV const& other);
|
||||
MV& operator=(i32 value);
|
||||
MV operator+(MV const& other) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user