QString QSystemError::toString() { switch(errorScope) { case NativeError: #if defined (Q_OS_WIN) return windowsErrorString(errorCode); #else //unix: fall through as native and standard library are the same #endif case StandardLibraryError: return standardLibraryErrorString(errorCode); default: qWarning("invalid error scope"); //fall through case NoError: return QLatin1String("No error"); } }
QString qt_error_string(int code) { return standardLibraryErrorString(code == -1 ? errno : code); }
QString QSystemError::stdString(int errorCode) { return standardLibraryErrorString(errorCode == -1 ? errno : errorCode); }