Make QSystemError const-correct

Change-Id: I8688d6ebd9c4773136e2303cddf96ad997b0cfae
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2015-05-20 18:44:15 +02:00
parent 35a161212c
commit b5af68d978
2 changed files with 6 additions and 6 deletions

View File

@ -145,7 +145,7 @@ static QString standardLibraryErrorString(int errorCode)
return ret.trimmed();
}
QString QSystemError::toString()
QString QSystemError::toString() const
{
switch(errorScope) {
case NativeError:

View File

@ -62,9 +62,9 @@ public:
inline QSystemError(int error, ErrorScope scope);
inline QSystemError();
QString toString();
inline ErrorScope scope();
inline int error();
QString toString() const;
inline ErrorScope scope() const;
inline int error() const;
//data members
int errorCode;
@ -83,12 +83,12 @@ QSystemError::QSystemError()
}
QSystemError::ErrorScope QSystemError::scope()
QSystemError::ErrorScope QSystemError::scope() const
{
return errorScope;
}
int QSystemError::error()
int QSystemError::error() const
{
return errorCode;
}