mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
AK: Add copy assignment operator for SourceLocation
This commit is contained in:
parent
01ec695ae3
commit
4b06cef93a
Notes:
sideshowbarker
2024-07-17 00:59:43 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/4b06cef93a Pull-request: https://github.com/SerenityOS/serenity/pull/21188 Reviewed-by: https://github.com/awesomekling
1 changed files with 5 additions and 3 deletions
|
@ -25,6 +25,8 @@ public:
|
|||
}
|
||||
|
||||
constexpr SourceLocation() = default;
|
||||
constexpr SourceLocation(SourceLocation const&) = default;
|
||||
SourceLocation& operator=(SourceLocation& other) = default;
|
||||
|
||||
private:
|
||||
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* const m_file { nullptr };
|
||||
const u32 m_line { 0 };
|
||||
char const* m_function { nullptr };
|
||||
char const* m_file { nullptr };
|
||||
u32 m_line { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue