diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2024-05-22 17:40:49 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-06-07 22:18:55 +0200 |
commit | 57c228803e55ed343c6693de7d0857ad7d3cd9e3 (patch) | |
tree | d924b50079467527e70cb184de1eb349261bc255 /include | |
parent | 3b71e059c1b3d32110152feeb0c85d51e2775ec7 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/osl/file.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osl/file.hxx b/include/osl/file.hxx index fcbabe96d674..81702bd847b3 100644 --- a/include/osl/file.hxx +++ b/include/osl/file.hxx @@ -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)); } |