diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-12 18:29:41 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-12 18:31:05 +0200 |
commit | 86637135b809f94973a6b55084d8045bbd276ceb (patch) | |
tree | f9372452b6fdd269ecf9088f009e9683fed7c3c1 /sw/source/filter/html/htmlcss1.cxx | |
parent | ec365165ba7f332df479422174899808e1ff4152 (diff) |
String to OUString and some optimizations
Change-Id: I9d93d6aa26b2c9d20f7be8d201051a51e8e4ce7a
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r-- | sw/source/filter/html/htmlcss1.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index 77871a1e4512..ab80587d3d75 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -1043,7 +1043,8 @@ sal_Bool SwCSS1Parser::StyleParsed( const CSS1Selector *pSelector, // die Attribute in das DropCap-Attribut einfuegen if( CSS1_SCRIPT_ALL == nScript ) { - FillDropCap( aDrop, rItemSet, &pColl->GetName() ); + OUString sName(pColl->GetName()); + FillDropCap( aDrop, rItemSet, &sName ); } else { @@ -1069,7 +1070,8 @@ sal_Bool SwCSS1Parser::StyleParsed( const CSS1Selector *pSelector, aScriptItemSet.ClearItem( RES_CHRATR_CTL_POSTURE ); aScriptItemSet.ClearItem( RES_CHRATR_CTL_WEIGHT ); } - FillDropCap( aDrop, aScriptItemSet, &pColl->GetName() ); + OUString sName(pColl->GetName()); + FillDropCap( aDrop, aScriptItemSet, &sName ); } // Das Attribut nur setzen, wenn float: left angegeben wurde @@ -1488,7 +1490,7 @@ void SwCSS1Parser::AddClassName( OUString& rFmtName, const OUString& rClass ) void SwCSS1Parser::FillDropCap( SwFmtDrop& rDrop, SfxItemSet& rItemSet, - const String *pName ) + const OUString *pName ) { // die Anzahl der Zeilen entspricht in etwa einer %-Angabe // fuer die Hoehe (was passiert mit absoluten Hoehen???) |