diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-01 08:42:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-01 12:14:45 +0300 |
commit | a401d9356e4ab3d8349b5a737a1f7e78f05f3f7e (patch) | |
tree | 2ab98a8b4acf9ad1d499b40d1d3456ef2df4b9cc | |
parent | b6dbe2be875d181d4d926ba95e52820d7d0d6240 (diff) |
Bin pointless INET_MARK_TOKEN
Change-Id: Id95a2bd8ba08e06284709a4c7fa2582382f8aeae
-rw-r--r-- | include/tools/urlobj.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/doc/visiturl.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 4 |
5 files changed, 5 insertions, 6 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index 0902372d6f9b..d400d5182493 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -31,7 +31,6 @@ namespace com { namespace sun { namespace star { namespace util { } } } } // Special tokens: -#define INET_MARK_TOKEN '#' #define INET_HEX_ESCAPE '%' // Common URL prefixes for various schemes: diff --git a/sw/source/core/doc/visiturl.cxx b/sw/source/core/doc/visiturl.cxx index 4c26121b575d..22850eabc0a7 100644 --- a/sw/source/core/doc/visiturl.cxx +++ b/sw/source/core/doc/visiturl.cxx @@ -52,7 +52,7 @@ void SwURLStateChanged::Notify( SfxBroadcaster& , const SfxHint& rHint ) if( pDoc->GetDocShell() && pDoc->GetDocShell()->GetMedium() && // If this is our Doc, we can also have local jumps! pDoc->GetDocShell()->GetMedium()->GetName().equals(sURL) ) - sBkmk = OUString(INET_MARK_TOKEN) + pIURL->GetMark(); + sBkmk = "#" + pIURL->GetMark(); bool bAction = false, bUnLockView = false; sal_uInt32 nMaxItems = pDoc->GetAttrPool().GetItemCount2( RES_TXTATR_INETFMT ); diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index abe9360a97e3..b78848c5f6b9 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -830,7 +830,7 @@ bool AttributeOutputBase::AnalyzeURL( const OUString& rUrl, const OUString& /*rT OUString sMark; OUString sURL; - if ( rUrl.getLength() > 1 && rUrl[0] == INET_MARK_TOKEN ) + if ( rUrl.getLength() > 1 && rUrl[0] == '#' ) { sMark = BookmarkToWriter( rUrl.copy(1) ); diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 346127178bf1..b97f66ded5ba 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2852,7 +2852,7 @@ void WW8Export::StoreDoc1() void MSWordExportBase::AddLinkTarget(const OUString& rURL) { - if( rURL.isEmpty() || rURL[0] != INET_MARK_TOKEN ) + if( rURL.isEmpty() || rURL[0] != '#' ) return; OUString aURL( BookmarkToWriter( rURL.copy( 1 ) ) ); diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 562ad9ef950b..db9a8260cb8b 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -2059,7 +2059,7 @@ eF_ResT SwWW8ImplReader::Read_F_PgRef( WW8FieldDesc*, OUString& rStr ) { sBookmarkName = sName; } - OUString sURL = OUString(INET_MARK_TOKEN) + sBookmarkName; + OUString sURL = "#" + sBookmarkName; const OUString sTarget; SwFmtINetFmt aURL( sURL, sTarget ); const OUString sLinkStyle("Index Link"); @@ -3422,7 +3422,7 @@ eF_ResT SwWW8ImplReader::Read_F_Hyperlink( WW8FieldDesc* /*pF*/, OUString& rStr OSL_ENSURE(!sURL.isEmpty() || !sMark.isEmpty(), "WW8: Empty URL"); if( !sMark.isEmpty() ) - ( sURL += OUString(INET_MARK_TOKEN) ) += sMark; + ( sURL += "#" ) += sMark; SwFmtINetFmt aURL( sURL, sTarget ); // If on loading TOC field, change the default style into the "index link" |