diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-20 09:58:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-20 12:06:40 +0100 |
commit | 81099135677ac6997473ca01a297c32025c58662 (patch) | |
tree | e30d5e1d30e588af37a373da935faa8225ed209d /filter/source/msfilter/msdffimp.cxx | |
parent | 8c023fd645c8b83637ffcde4055886b2e4f94393 (diff) |
ditch last (?) uses of UniString::UniString(sal_Unicode, ...)
Change-Id: Ie04a3465100d2f013f34168aaf136a20cd2f7e0d
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 865bcfd0a131..fbcc445f9f54 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -3728,7 +3728,7 @@ void SvxMSDffManager::ReadObjText( const String& rText, SdrObject* pObj ) const rOutliner.SetVertical( pText->IsVerticalWriting() ); sal_uInt16 nParaIndex = 0; - sal_uInt32 nParaSize; + sal_Int32 nParaSize; const sal_Unicode* pCurrent, *pBuf = rText.GetBuffer(); const sal_Unicode* pEnd = rText.GetBuffer() + rText.Len(); @@ -3752,12 +3752,12 @@ void SvxMSDffManager::ReadObjText( const String& rText, SdrObject* pObj ) const break; } else - nParaSize++; + ++nParaSize; } ESelection aSelection( nParaIndex, 0, nParaIndex, 0 ); - String aParagraph( pCurrent, (sal_uInt16)nParaSize ); - if ( !nParaIndex && !aParagraph.Len() ) // SJ: we are crashing if the first paragraph is empty ? - aParagraph += (sal_Unicode)' '; // otherwise these two lines can be removed. + rtl::OUString aParagraph( pCurrent, nParaSize ); + if ( !nParaIndex && aParagraph.isEmpty() ) // SJ: we are crashing if the first paragraph is empty ? + aParagraph += rtl::OUString(' '); // otherwise these two lines can be removed. rOutliner.Insert( aParagraph, nParaIndex, 0 ); rOutliner.SetParaAttribs( nParaIndex, rOutliner.GetEmptyItemSet() ); |