[Libreoffice-commits] core.git: sal/osl
Tor Lillqvist
tml at collabora.com
Wed Jul 15 03:14:48 PDT 2015
sal/osl/w32/file_url.cxx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 8474e8260ad18cf83c79bd64a63e6344b4ce24d2
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Jul 15 13:11:45 2015 +0300
Log the actual string, not the rtl_uString pointer value
Change-Id: I51938f4801436aff31b51fd36c89582062f83b9a
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 0aaa7eb..1581544 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -26,6 +26,7 @@
#include "file_error.h"
#include "rtl/alloc.h"
+#include <rtl/ustring.hxx>
#include "osl/diagnose.h"
#include "osl/file.h"
#include "osl/mutex.h"
@@ -699,7 +700,7 @@ oslFileError _osl_getSystemPathFromFileURL( rtl_uString *strURL, rtl_uString **p
strUTF8->length != strURL->length &&
0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( strURL->buffer, strURL->length, "file:\\\\", 7 )
, "sal.osl"
- ,"osl_getSystemPathFromFileURL: \"" << strURL << "\" is not encoded !!!");
+ ,"osl_getSystemPathFromFileURL: \"" << rtl::OUString(strURL) << "\" is not encoded !!!");
bValidEncoded = _osl_decodeURL( strUTF8, &strDecodedURL );
@@ -796,7 +797,7 @@ oslFileError _osl_getSystemPathFromFileURL( rtl_uString *strURL, rtl_uString **p
}
else
SAL_INFO_IF(nError, "sal.osl",
- "osl_getSystemPathFromFileURL: \"" << strURL << "\" is not an absolute FileURL");
+ "osl_getSystemPathFromFileURL: \"" << rtl::OUString(strURL) << "\" is not an absolute FileURL");
}
@@ -810,7 +811,7 @@ oslFileError _osl_getSystemPathFromFileURL( rtl_uString *strURL, rtl_uString **p
rtl_uString_release( strTempPath );
SAL_INFO_IF(nError, "sal.osl",
- "osl_getSystemPathFromFileURL: \"" << strURL << "\" is not a FileURL");
+ "osl_getSystemPathFromFileURL: \"" << rtl::OUString(strURL) << "\" is not a FileURL");
return nError;
}
@@ -916,7 +917,7 @@ oslFileError _osl_getFileURLFromSystemPath( rtl_uString* strPath, rtl_uString**
rtl_uString_release( strTempURL );
SAL_INFO_IF(nError, "sal.osl",
- "osl_getFileURLFromSystemPath: \"" << strPath << "\" is not a systemPath");
+ "osl_getFileURLFromSystemPath: \"" << rtl::OUString(strPath) << "\" is not a systemPath");
return nError;
}
More information about the Libreoffice-commits
mailing list