From 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Mon Sep 17 00:00:00 2001 From: elixir Date: Thu, 7 Mar 2013 19:35:49 +0530 Subject: fdo#38838: Converting String/UniString to OUString Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- sw/source/filter/ww8/ww8atr.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/source/filter/ww8/ww8atr.cxx') diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index baeb447a65d8..4f9161fd7685 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2194,8 +2194,8 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect ) const String& rStyles = pTOX->GetStyleNames( n ); if( rStyles.Len() ) { - xub_StrLen nPos = 0; - String sLvl = rtl::OUString(','); + sal_Int32 nPos = 0; + String sLvl = OUString(','); sLvl += OUString::number( n + 1 ); do { String sStyle( rStyles.GetToken( 0, @@ -2210,7 +2210,7 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect ) ( sTOption += sStyle ) += sLvl; } } - } while( STRING_NOTFOUND != nPos ); + } while( -1 != nPos ); } } @@ -2382,7 +2382,7 @@ void WW8Export::WritePostItBegin( ww::bytes* pOut ) String FieldString(ww::eField eIndex) { - String sRet(rtl::OUString(" ")); + String sRet(OUString(" ")); if (const char *pField = ww::GetEnglishFieldName(eIndex)) sRet.InsertAscii(pField, 1); return sRet; @@ -2653,7 +2653,7 @@ void AttributeOutputBase::TextField( const SwFmtFld& rField ) case DI_CUSTOM: eFld = ww::eDOCPROPERTY; { - rtl::OUString sQuotes('\"'); + OUString sQuotes('\"'); const SwDocInfoField * pDocInfoField = dynamic_cast (pFld); -- cgit