From 81e16cea9a11185c209894973db8d1990fa9cce6 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 5 Dec 2012 00:37:01 +0100 Subject: mvoe rtl_(u)string_alloc to sal No point in hidding something useful like this in some helper lib. Change-Id: I7332d7f6bd428378cd19e7e95ad130771a541140 --- sw/source/core/edit/edglss.cxx | 1 - sw/source/core/unocore/unoobj.cxx | 2 +- sw/source/filter/ww8/ww8par.cxx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sw/source') diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx index 9125987b92b6..210ce3f3ee53 100644 --- a/sw/source/core/edit/edglss.cxx +++ b/sw/source/core/edit/edglss.cxx @@ -339,7 +339,6 @@ sal_Bool SwEditShell::GetSelectedText( String &rBuf, int nHndlParaBrk ) rBuf = rtl::OUString(p); else { - using comphelper::string::rtl_uString_alloc; rtl_uString *pStr = rtl_uString_alloc(lLen / sizeof( sal_Unicode )); aStream.Seek( 0 ); aStream.ResetError(); diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index a91286aecda7..a4f8ea2db818 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -206,7 +206,7 @@ void SwUnoCursorHelper::GetTextFromPam(SwPaM & rPam, OUString & rBuffer) aStream.ResetError(); long lUniLen = (lLen / sizeof( sal_Unicode )); - rtl_uString *pStr = comphelper::string::rtl_uString_alloc(lUniLen); + rtl_uString *pStr = rtl_uString_alloc(lUniLen); aStream.Read(pStr->buffer, lUniLen * sizeof(sal_Unicode)); rBuffer = rtl::OUString(pStr, SAL_NO_ACQUIRE); } diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 22c49fd20020..e71b6c08e9f3 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2567,7 +2567,7 @@ bool SwWW8ImplReader::ReadPlainChars(WW8_CP& rPos, long nEnd, long nCpOfs) RTL_TEXTENCODING_MS_1252; // allocate unicode string data - rtl_uString *pStr = comphelper::string::rtl_uString_alloc(nStrLen); + rtl_uString *pStr = rtl_uString_alloc(nStrLen); sal_Unicode* pBuffer = pStr->buffer; sal_Unicode* pWork = pBuffer; -- cgit