summaryrefslogtreecommitdiffstats
path: root/sfx2/source/appl/lnkbase2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-26 15:22:55 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:06 +0200
commitbf1db6daca85bee8333740d43e087feb2965a81b (patch)
tree3daed89ae5a5ad7c6bd3451f7bbbc556afb1c671 /sfx2/source/appl/lnkbase2.cxx
parentconvert include/sfx2/linksrc.hxx from String to OUString (diff)
downloadcore-bf1db6daca85bee8333740d43e087feb2965a81b.tar.gz
core-bf1db6daca85bee8333740d43e087feb2965a81b.zip
convert include/sfx2/linkmgr.hxx from String to OUString
along the way, de-virtual ScDocFunc::InsertAreaLink, since it only has one implementation. Change-Id: I3fc836f9954628f154e01b1c7ae8f90eb7600a76
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index 3692a1654050..6bf55d5127ed 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -481,25 +481,25 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName )
SetLinkSourceName( _rNewName );
if( !Update() )
{
- String sApp, sTopic, sItem, sError;
+ OUString sApp, sTopic, sItem, sError;
pImpl->m_pLinkMgr->GetDisplayNames( this, &sApp, &sTopic, &sItem );
if( nObjType == OBJECT_CLIENT_DDE )
{
sError = SFX2_RESSTR(STR_DDE_ERROR);
- sal_uInt16 nFndPos = sError.Search( '%' );
- if( STRING_NOTFOUND != nFndPos )
+ sal_Int32 nFndPos = sError.indexOf( '%' );
+ if( -1 != nFndPos )
{
- sError.Erase( nFndPos, 1 ).Insert( sApp, nFndPos );
- nFndPos = nFndPos + sApp.Len();
+ sError = sError.replaceAt( nFndPos, 1, sApp );
+ nFndPos = nFndPos + sApp.getLength();
}
- if( STRING_NOTFOUND != ( nFndPos = sError.Search( '%', nFndPos )))
+ if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
{
- sError.Erase( nFndPos, 1 ).Insert( sTopic, nFndPos );
- nFndPos = nFndPos + sTopic.Len();
+ sError = sError.replaceAt( nFndPos, 1, sTopic );
+ nFndPos = nFndPos + sTopic.getLength();
}
- if( STRING_NOTFOUND != ( nFndPos = sError.Search( '%', nFndPos )))
- sError.Erase( nFndPos, 1 ).Insert( sItem, nFndPos );
+ if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
+ sError = sError.replaceAt( nFndPos, 1, sItem );
}
else
return false;