Make QSystemError const-correct
Change-Id: I8688d6ebd9c4773136e2303cddf96ad997b0cfae Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
35a161212c
commit
b5af68d978
@ -145,7 +145,7 @@ static QString standardLibraryErrorString(int errorCode)
|
||||
return ret.trimmed();
|
||||
}
|
||||
|
||||
QString QSystemError::toString()
|
||||
QString QSystemError::toString() const
|
||||
{
|
||||
switch(errorScope) {
|
||||
case NativeError:
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user