From da1d01a432e160031abbf445b4efe879a664bbfa Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 29 Mar 2015 10:12:37 +0300 Subject: Minor simplification Change-Id: Idcf9158d0446107ec783fd8691078791d7b25e31 --- sal/osl/unx/file_url.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx index 30c03ba2eebc..742b3f5a6a29 100644 --- a/sal/osl/unx/file_url.cxx +++ b/sal/osl/unx/file_url.cxx @@ -697,11 +697,8 @@ oslFileError osl_searchFileURL(rtl_uString* ustrFilePath, rtl_uString* ustrSearc if (osl::realpath(result, resolved)) { -#if OSL_DEBUG_LEVEL > 0 - oslFileError osl_error = -#endif - osl_getFileURLFromSystemPath(resolved.pData, pustrURL); - OSL_ASSERT(osl_File_E_None == osl_error); + oslFileError osl_error = osl_getFileURLFromSystemPath(resolved.pData, pustrURL); + SAL_WARN_IF(osl_File_E_None != osl_error, "sal.file", "osl_getFileURLFromSystemPath failed"); bfound = true; } } -- cgit