forked from OSchip/llvm-project
Mark UUID::GetByteSize() const
Summary: This method doesn't modify anything in the object it's called on so we can mark it const to make it usable in a const context. Reviewers: clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D40517 llvm-svn: 319095
This commit is contained in:
parent
0de1a4bc2d
commit
2072552360
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
const void *GetBytes() const;
|
||||
|
||||
size_t GetByteSize();
|
||||
size_t GetByteSize() const;
|
||||
|
||||
bool IsValid() const;
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ bool UUID::SetBytes(const void *uuid_bytes, uint32_t num_uuid_bytes) {
|
|||
return false;
|
||||
}
|
||||
|
||||
size_t UUID::GetByteSize() { return m_num_uuid_bytes; }
|
||||
size_t UUID::GetByteSize() const { return m_num_uuid_bytes; }
|
||||
|
||||
bool UUID::IsValid() const {
|
||||
return m_uuid[0] || m_uuid[1] || m_uuid[2] || m_uuid[3] || m_uuid[4] ||
|
||||
|
|
Loading…
Reference in New Issue