From 2072552360079082237f6a1aef4b00da0ee9d69d Mon Sep 17 00:00:00 2001 From: Stephane Sezer Date: Mon, 27 Nov 2017 21:16:37 +0000 Subject: [PATCH] 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 --- lldb/include/lldb/Utility/UUID.h | 2 +- lldb/source/Utility/UUID.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/include/lldb/Utility/UUID.h b/lldb/include/lldb/Utility/UUID.h index 6313025..5e64e90 100644 --- a/lldb/include/lldb/Utility/UUID.h +++ b/lldb/include/lldb/Utility/UUID.h @@ -46,7 +46,7 @@ public: const void *GetBytes() const; - size_t GetByteSize(); + size_t GetByteSize() const; bool IsValid() const; diff --git a/lldb/source/Utility/UUID.cpp b/lldb/source/Utility/UUID.cpp index edad98e..1b5d24a 100644 --- a/lldb/source/Utility/UUID.cpp +++ b/lldb/source/Utility/UUID.cpp @@ -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] || -- 2.7.4