summaryrefslogtreecommitdiff
path: root/xmloff/source/style/fonthdl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-29 21:05:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-30 13:18:36 +0000
commite216078272373b2d7a96929437b5e5986b4ec185 (patch)
treec1920b3d6d07ba482fefa2545ccc282f99da20d4 /xmloff/source/style/fonthdl.cxx
parent5d138c0de15ee9bd3fe7d35a194935073813092b (diff)
reduce unnecessary includes
Diffstat (limited to 'xmloff/source/style/fonthdl.cxx')
-rw-r--r--xmloff/source/style/fonthdl.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx
index ca7774e0b011..31abfa3c9a62 100644
--- a/xmloff/source/style/fonthdl.cxx
+++ b/xmloff/source/style/fonthdl.cxx
@@ -37,8 +37,6 @@
#include <com/sun/star/uno/Any.hxx>
#include <tools/fontenum.hxx>
-#include <tools/string.hxx>
-
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
@@ -80,7 +78,7 @@ XMLFontFamilyNamePropHdl::~XMLFontFamilyNamePropHdl()
sal_Bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, const SvXMLUnitConverter& ) const
{
sal_Bool bRet = sal_False;
- String sValue;
+ OUStringBuffer sValue;
sal_Int32 nPos = 0;
do
@@ -109,11 +107,10 @@ sal_Bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno:
if( nFirst <= nLast )
{
- if( sValue.Len() != 0 )
- sValue += sal_Unicode(';');
+ if( sValue.getLength() != 0 )
+ sValue.append(';');
- OUString sTemp = rStrImpValue.copy( nFirst, nLast-nFirst+1 );
- sValue += sTemp.getStr();
+ sValue.append(rStrImpValue.copy( nFirst, nLast-nFirst+1));
}
if( -1 != nPos )
@@ -121,9 +118,9 @@ sal_Bool XMLFontFamilyNamePropHdl::importXML( const OUString& rStrImpValue, uno:
}
while( -1 != nPos );
- if( sValue.Len() )
+ if (sValue.getLength())
{
- rValue <<= OUString(sValue.GetBuffer());
+ rValue <<= sValue.makeStringAndClear();
bRet = sal_True;
}