Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/elftosb/dist/common Fix constness of operator ==.
details: https://anonhg.NetBSD.org/src/rev/78cfb44b68ed
branches: trunk
changeset: 331424:78cfb44b68ed
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Aug 10 18:42:33 2014 +0000
description:
Fix constness of operator ==.
diffstat:
external/bsd/elftosb/dist/common/StExecutableImage.cpp | 2 +-
external/bsd/elftosb/dist/common/StExecutableImage.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 4cd7bf37decd -r 78cfb44b68ed external/bsd/elftosb/dist/common/StExecutableImage.cpp
--- a/external/bsd/elftosb/dist/common/StExecutableImage.cpp Sun Aug 10 18:33:41 2014 +0000
+++ b/external/bsd/elftosb/dist/common/StExecutableImage.cpp Sun Aug 10 18:42:33 2014 +0000
@@ -399,7 +399,7 @@
//! Used when we remove a region from the region list by value. Because this
//! operator compares the #m_data member, it will only return true for either an
//! exact copy or a reference to the original.
-bool StExecutableImage::MemoryRegion::operator == (const MemoryRegion & other)
+bool StExecutableImage::MemoryRegion::operator == (const MemoryRegion & other) const
{
return (m_type == other.m_type) && (m_address == other.m_address) && (m_length == other.m_length) && (m_flags == other.m_flags) && (m_data == other.m_data);
}
diff -r 4cd7bf37decd -r 78cfb44b68ed external/bsd/elftosb/dist/common/StExecutableImage.h
--- a/external/bsd/elftosb/dist/common/StExecutableImage.h Sun Aug 10 18:33:41 2014 +0000
+++ b/external/bsd/elftosb/dist/common/StExecutableImage.h Sun Aug 10 18:42:33 2014 +0000
@@ -62,7 +62,7 @@
inline uint32_t endAddress() const { return m_address + m_length - 1; }
//! \brief Equality operator.
- bool operator == (const MemoryRegion & other);
+ bool operator == (const MemoryRegion & other) const;
};
//! A list of #StExecutableImage::MemoryRegion objects.
Home |
Main Index |
Thread Index |
Old Index