Kaydet (Commit) 11d743af authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some OSL_WARN -> SAL_WARN_IF

Change-Id: I076adcd2f94c38a74f2dce618bc16efec577ed91
üst 2c6363eb
...@@ -272,6 +272,7 @@ certain functionality. ...@@ -272,6 +272,7 @@ certain functionality.
@li @c tools.memtools @li @c tools.memtools
@li @c tools.rc - resource manager @li @c tools.rc - resource manager
@li @c tools.stream - SvStream class @li @c tools.stream - SvStream class
@li @c tools.urlobj - INetURLObject class
@section ucb @section ucb
......
...@@ -1732,7 +1732,11 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef, ...@@ -1732,7 +1732,11 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef,
// Detect cases where a relative input could not be made absolute // Detect cases where a relative input could not be made absolute
// because the given base URL is broken (most probably because it is // because the given base URL is broken (most probably because it is
// empty): // empty):
OSL_ASSERT(!HasError()); SAL_WARN_IF(
HasError(), "tools.urlobj",
"cannot make <" << rTheRelURIRef
<< "> absolute against broken base <"
<< GetMainURL(NO_DECODE) << ">");
rWasAbsolute = false; rWasAbsolute = false;
return false; return false;
} }
...@@ -1859,7 +1863,11 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef, ...@@ -1859,7 +1863,11 @@ bool INetURLObject::convertRelToAbs(OUString const & rTheRelURIRef,
// Detect cases where a relative input could not be made absolute // Detect cases where a relative input could not be made absolute
// because the given base URL is broken (most probably because it is // because the given base URL is broken (most probably because it is
// empty): // empty):
OSL_ASSERT(!HasError()); SAL_WARN_IF(
HasError(), "tools.urlobj",
"cannot make <" << rTheRelURIRef
<< "> absolute against broken base <" << GetMainURL(NO_DECODE)
<< ">");
rWasAbsolute = false; rWasAbsolute = false;
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment