Skip to content

Commit d792acb

Browse files
authored
Add const specifier to UUID comparison operators (#732)
1 parent f8437df commit d792acb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/aws/crt/UUID.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ namespace Aws
2323

2424
UUID &operator=(const String &str) noexcept;
2525

26-
bool operator==(const UUID &other) noexcept;
27-
bool operator!=(const UUID &other) noexcept;
26+
bool operator==(const UUID &other) const noexcept;
27+
bool operator!=(const UUID &other) const noexcept;
2828
operator String() const;
2929
operator ByteBuf() const noexcept;
3030

source/UUID.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ namespace Aws
3131
return *this;
3232
}
3333

34-
bool UUID::operator==(const UUID &other) noexcept
34+
bool UUID::operator==(const UUID &other) const noexcept
3535
{
3636
return aws_uuid_equals(&m_uuid, &other.m_uuid);
3737
}
3838

39-
bool UUID::operator!=(const UUID &other) noexcept
39+
bool UUID::operator!=(const UUID &other) const noexcept
4040
{
4141
return !aws_uuid_equals(&m_uuid, &other.m_uuid);
4242
}
@@ -66,4 +66,4 @@ namespace Aws
6666
return aws_last_error();
6767
}
6868
} // namespace Crt
69-
} // namespace Aws
69+
} // namespace Aws

0 commit comments

Comments
 (0)