diff options
| author | Stephane Sezer <sas@cd80.net> | 2017-11-27 21:16:37 +0000 |
|---|---|---|
| committer | Stephane Sezer <sas@cd80.net> | 2017-11-27 21:16:37 +0000 |
| commit | 2072552360079082237f6a1aef4b00da0ee9d69d (patch) | |
| tree | 8b85e8f50f59ffdcd501c4eab9e0e37e9abdd5a3 /lldb/source/Utility/UUID.cpp | |
| parent | 0de1a4bc2d2632ceb42a022c52195de323740e73 (diff) | |
| download | bcm5719-llvm-2072552360079082237f6a1aef4b00da0ee9d69d.tar.gz bcm5719-llvm-2072552360079082237f6a1aef4b00da0ee9d69d.zip | |
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
Diffstat (limited to 'lldb/source/Utility/UUID.cpp')
| -rw-r--r-- | lldb/source/Utility/UUID.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/UUID.cpp b/lldb/source/Utility/UUID.cpp index edad98e2f20..1b5d24a1f8f 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] || |

