include/osl/file.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 57c228803e55ed343c6693de7d0857ad7d3cd9e3
Author:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
AuthorDate: Wed May 22 17:40:49 2024 +0200
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Fri Jun 7 22:18:55 2024 +0200

    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.behr...@allotropia.de>

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));
     }
 

Reply via email to