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:
Stephane Sezer 2017-11-27 21:16:37 +00:00
parent 0de1a4bc2d
commit 2072552360
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public:
const void *GetBytes() const;
size_t GetByteSize();
size_t GetByteSize() const;
bool IsValid() const;

View File

@ -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] ||