shared: SaveFileResult: Introduce isErrorSaveFileResult()
This commit is contained in:
父節點
5f19328679
當前提交
64a9638d1e
@ -30,4 +30,9 @@ static inline QString SaveFileResultToString(SaveFileResult sfr)
|
|||||||
return SaveFileResultStr[(int)sfr];
|
return SaveFileResultStr[(int)sfr];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool isErrorSaveFileResult(SaveFileResult result)
|
||||||
|
{
|
||||||
|
return result == DBFAIL || result == PROCESSFAIL || result == NOTFOUND || result == NOACCESS;
|
||||||
|
}
|
||||||
|
|
||||||
#endif // SAVEFILERESULT_H
|
#endif // SAVEFILERESULT_H
|
||||||
|
Loading…
Reference in New Issue
Block a user