tdf#43157 Use SAL_WARN_IF instead of OSL_PRECOND
Change-Id: I9876ac2bb83f8dc96c41c20dfd2bf779ffe105fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167997 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
This commit is contained in:
committed by
Thorsten Behrens
parent
3b71e059c1
commit
57c228803e
@@ -1240,7 +1240,7 @@ public:
|
||||
*/
|
||||
RC sync() const
|
||||
{
|
||||
OSL_PRECOND(_pData, "File::sync(): File not open");
|
||||
SAL_WARN_IF(!_pData, "sal.osl", "File::sync(): File not open");
|
||||
return static_cast< RC >(osl_syncFile(_pData));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user