diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 10:47:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 14:53:50 +0100 |
commit | 60722c31373daaaf195dbf1ebd3414ca0db696c3 (patch) | |
tree | 486d0c23e30b81b601a487eeb510df814800e794 /sw | |
parent | e9a467cafbffb380c54e90b24f9ee20cd4adc7e8 (diff) |
convert Suffix/Prefix to rtl::OUString
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/fmtftntx.hxx | 12 | ||||
-rw-r--r-- | sw/inc/ftninfo.hxx | 12 | ||||
-rw-r--r-- | sw/source/filter/html/htmlftn.cxx | 6 |
3 files changed, 15 insertions, 15 deletions
diff --git a/sw/inc/fmtftntx.hxx b/sw/inc/fmtftntx.hxx index 4f27387b0434..748d53b2aee0 100644 --- a/sw/inc/fmtftntx.hxx +++ b/sw/inc/fmtftntx.hxx @@ -46,8 +46,8 @@ enum SwFtnEndPosEnum class SW_DLLPUBLIC SwFmtFtnEndAtTxtEnd : public SfxEnumItem { - String sPrefix; - String sSuffix; + rtl::OUString sPrefix; + rtl::OUString sSuffix; SvxNumberType aFmt; sal_uInt16 nOffset; @@ -87,11 +87,11 @@ public: sal_uInt16 GetOffset() const { return nOffset; } void SetOffset( sal_uInt16 nOff ) { nOffset = nOff; } - const String& GetPrefix() const { return sPrefix; } - void SetPrefix(const String& rSet) { sPrefix = rSet; } + const rtl::OUString& GetPrefix() const { return sPrefix; } + void SetPrefix(const rtl::OUString& rSet) { sPrefix = rSet; } - const String& GetSuffix() const { return sSuffix; } - void SetSuffix(const String& rSet) { sSuffix = rSet; } + const rtl::OUString& GetSuffix() const { return sSuffix; } + void SetSuffix(const rtl::OUString& rSet) { sSuffix = rSet; } }; class SW_DLLPUBLIC SwFmtFtnAtTxtEnd : public SwFmtFtnEndAtTxtEnd diff --git a/sw/inc/ftninfo.hxx b/sw/inc/ftninfo.hxx index 95b626cc600a..cccd6f76838d 100644 --- a/sw/inc/ftninfo.hxx +++ b/sw/inc/ftninfo.hxx @@ -42,8 +42,8 @@ class SW_DLLPUBLIC SwEndNoteInfo : public SwClient { SwDepend aPageDescDep; SwDepend aCharFmtDep, aAnchorCharFmtDep; - String sPrefix; - String sSuffix; + rtl::OUString sPrefix; + rtl::OUString sSuffix; protected: bool m_bEndNote; virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ); @@ -74,11 +74,11 @@ public: SwEndNoteInfo( SwTxtFmtColl *pTxtColl = 0); SwEndNoteInfo(const SwEndNoteInfo&); - const String& GetPrefix() const { return sPrefix; } - const String& GetSuffix() const { return sSuffix; } + const rtl::OUString& GetPrefix() const { return sPrefix; } + const rtl::OUString& GetSuffix() const { return sSuffix; } - void SetPrefix(const String& rSet) { sPrefix = rSet; } - void SetSuffix(const String& rSet) { sSuffix = rSet; } + void SetPrefix(const rtl::OUString& rSet) { sPrefix = rSet; } + void SetSuffix(const rtl::OUString& rSet) { sSuffix = rSet; } void ReleaseCollection() { if ( GetRegisteredInNonConst() ) GetRegisteredInNonConst()->Remove( this ); } }; diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx index ba2c5a721c05..4ca1581d3233 100644 --- a/sw/source/filter/html/htmlftn.cxx +++ b/sw/source/filter/html/htmlftn.cxx @@ -515,15 +515,15 @@ sal_uInt16 lcl_html_fillEndNoteInfo( const SwEndNoteInfo& rInfo, } if( rInfo.nFtnOffset > 0 ) { - pParts[1] = String::CreateFromInt32( (sal_Int32)rInfo.nFtnOffset ); + pParts[1] = rtl::OUString::valueOf(static_cast<sal_Int32>(rInfo.nFtnOffset)); nParts = 2; } - if( rInfo.GetPrefix().Len() > 0 ) + if( !rInfo.GetPrefix().isEmpty() ) { pParts[2] = rInfo.GetPrefix(); nParts = 3; } - if( rInfo.GetSuffix().Len() > 0 ) + if( !rInfo.GetSuffix().isEmpty() ) { pParts[3] = rInfo.GetSuffix(); nParts = 4; |