mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Add copy assignment operator for SourceLocation
This commit is contained in:
committed by
Andreas Kling
parent
01ec695ae3
commit
4b06cef93a
@@ -25,6 +25,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
constexpr SourceLocation() = default;
|
constexpr SourceLocation() = default;
|
||||||
|
constexpr SourceLocation(SourceLocation const&) = default;
|
||||||
|
SourceLocation& operator=(SourceLocation& other) = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
constexpr SourceLocation(char const* const file, u32 line, char const* const function)
|
constexpr SourceLocation(char const* const file, u32 line, char const* const function)
|
||||||
@@ -34,9 +36,9 @@ private:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
char const* const m_function { nullptr };
|
char const* m_function { nullptr };
|
||||||
char const* const m_file { nullptr };
|
char const* m_file { nullptr };
|
||||||
const u32 m_line { 0 };
|
u32 m_line { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user