summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8atr.cxx
diff options
context:
space:
mode:
authorelixir <prashant3.yishu@gmail.com>2013-03-07 19:35:49 +0530
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-11 15:50:44 +0000
commit7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 (patch)
tree106a20fe24e8935e9b4943f17dad49dba67aa013 /sw/source/filter/ww8/ww8atr.cxx
parentc9d7427707ca36f60079833f53efd435202fe231 (diff)
fdo#38838: Converting String/UniString to OUString
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sw/source/filter/ww8/ww8atr.cxx')
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx10
1 files changed, 5 insertions, 5 deletions
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<const SwDocInfoField *> (pFld);