diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-16 15:06:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-17 07:28:49 +0200 |
commit | 8b4719c29fc9bd7e198ad6ced301e1ff7a350f16 (patch) | |
tree | d3ec594b343f56c76056418d835d3bc7b696a9ab /sfx2 | |
parent | f51cd77bcecc5134e0e04c398bfb7b34eb65d68d (diff) |
Rename OUStringLiteral1 to OUStringChar
It started out as a wrapper around character literals, but has by now become a
wrapper around arbitrary single characters. Besides updating the documentation,
this change is a mechanical
for i in $(git grep -Fl OUStringLiteral1); do sed -i -e s/OUStringLiteral1/OUStringChar/g "$i"; done
Change-Id: I1b9eaa4b3fbc9025ce4a4bffea3db1c16188b76f
Reviewed-on: https://gerrit.libreoffice.org/80892
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/fileobj.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index 744793e0626e..cb6529fcfde2 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -280,8 +280,8 @@ void SvFileObject::Edit(weld::Window* pParent, sfx2::SvBaseLink* pLink, const Li if( !aDlg.Execute() ) { sFile = aDlg.GetPath() - + OUStringLiteral1(sfx2::cTokenSeparator) - + OUStringLiteral1(sfx2::cTokenSeparator) + + OUStringChar(sfx2::cTokenSeparator) + + OUStringChar(sfx2::cTokenSeparator) + aDlg.GetDetectedFilter(); aEndEditLink.Call( sFile ); @@ -368,8 +368,8 @@ IMPL_LINK( SvFileObject, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, vo if ( _pFileDlg && _pFileDlg->GetError() == ERRCODE_NONE ) { OUString sURL( _pFileDlg->GetPath() ); - sFile = sURL + OUStringLiteral1(sfx2::cTokenSeparator) - + OUStringLiteral1(sfx2::cTokenSeparator) + sFile = sURL + OUStringChar(sfx2::cTokenSeparator) + + OUStringChar(sfx2::cTokenSeparator) + impl_getFilter( sURL ); } } diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index fa242e0c34e3..3109ac7ff28a 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -377,7 +377,7 @@ void MakeLnkName( OUString& rName, const OUString* pType, const OUString& rFile, if( pType ) { rName = comphelper::string::strip(*pType, ' ') - + OUStringLiteral1(cTokenSeparator); + + OUStringChar(cTokenSeparator); } else rName.clear(); @@ -385,11 +385,11 @@ void MakeLnkName( OUString& rName, const OUString* pType, const OUString& rFile, rName += rFile; rName = comphelper::string::strip(rName, ' ') - + OUStringLiteral1(cTokenSeparator); + + OUStringChar(cTokenSeparator); rName = comphelper::string::strip(rName, ' ') + rLink; if( pFilter ) { - rName += OUStringLiteral1(cTokenSeparator) + *pFilter; + rName += OUStringChar(cTokenSeparator) + *pFilter; rName = comphelper::string::strip(rName, ' '); } } |