diff options
author | Dmitry Fleytman <dfleytma@redhat.com> | 2014-04-23 15:56:30 +0300 |
---|---|---|
committer | Dmitry Fleytman <dfleytma@redhat.com> | 2014-05-11 19:26:14 +0300 |
commit | ee3e3f77ac0957355263a4ea6da1439cb6c624fb (patch) | |
tree | 6f68efa979ba37299592c3e79a140cd324506e46 | |
parent | c3e056bb39c57c044458155f4c0e27dccabdd4b1 (diff) |
UsbDk: Mark string compare operators const
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
-rw-r--r-- | UsbDk/UsbDkUtil.cpp | 2 | ||||
-rw-r--r-- | UsbDk/UsbDkUtil.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/UsbDk/UsbDkUtil.cpp b/UsbDk/UsbDkUtil.cpp index 2cb17fe..62adf40 100644 --- a/UsbDk/UsbDkUtil.cpp +++ b/UsbDk/UsbDkUtil.cpp @@ -107,7 +107,7 @@ void CString::Destroy() } } -bool CStringBase::operator== (const UNICODE_STRING& Str) +bool CStringBase::operator== (const UNICODE_STRING& Str) const { if (m_String.Length != Str.Length) { diff --git a/UsbDk/UsbDkUtil.h b/UsbDk/UsbDkUtil.h index d5c02f2..7764537 100644 --- a/UsbDk/UsbDkUtil.h +++ b/UsbDk/UsbDkUtil.h @@ -305,12 +305,12 @@ private: class CStringBase { public: - bool operator== (const CStringBase &Other) + bool operator== (const CStringBase &Other) const { return *this == Other.m_String; } - bool operator== (const UNICODE_STRING& Str); + bool operator== (const UNICODE_STRING& Str) const; - bool operator== (PCWSTR Other) + bool operator== (PCWSTR Other) const { UNICODE_STRING str; if (NT_SUCCESS(RtlUnicodeStringInit(&str, Other))) |