UsbDkHelper: Mark GetErrorCode() of exception classes const
This is useful when catching exception by const reference Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
43a16ffb13
commit
ba73c6882f
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ public:
|
|||
UsbDkNumErrorException(const tstring &Description, DWORD dwErrorCode);
|
||||
UsbDkNumErrorException(const UsbDkNumErrorException& Other);
|
||||
|
||||
DWORD GetErrorCode(void) { return m_dwErrorCode; }
|
||||
DWORD GetErrorCode(void) const { return m_dwErrorCode; }
|
||||
|
||||
protected:
|
||||
DWORD m_dwErrorCode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue