Kaydet (Commit) 1114d927 authored tarafından Noel Grandin's avatar Noel Grandin

fix OUString simplify

In my commit fb847101
"simplify - use OUString::startsWith where possible"

I incorrectly converted
 if ( !aURL.isEmpty() && ( aURL[ 0 ] != '#' ) )
to
 if ( aURL.startsWith("#") )

Change-Id: I7fa3a814e13724dc65821e09c03db898b92626ec
üst 3c65cee3
...@@ -783,7 +783,7 @@ void EditHTMLParser::AnchorStart() ...@@ -783,7 +783,7 @@ void EditHTMLParser::AnchorStart()
if ( !aRef.isEmpty() ) if ( !aRef.isEmpty() )
{ {
OUString aURL = aRef; OUString aURL = aRef;
if ( aURL.startsWith("#") ) if ( !aURL.isEmpty() && ( aURL[ 0 ] != '#' ) )
{ {
INetURLObject aTargetURL; INetURLObject aTargetURL;
INetURLObject aRootURL( aBaseURL ); INetURLObject aRootURL( aBaseURL );
......
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