summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-30 11:31:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-30 13:18:38 +0000
commitbbc94edb9a91b27910d43610db9994df10dd99e1 (patch)
tree99f81b7bc96dd93ae6c6e6a4f7a57cfda72cdfa4 /svtools
parent47e1e8494dde85414d28efafa99b33a62b59116d (diff)
refactor ConvertLineEnd
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/edit/texteng.cxx3
-rw-r--r--svtools/source/edit/textview.cxx3
-rw-r--r--svtools/source/svhtml/parhtml.cxx2
3 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx
index 5a6f7b81af57..74c41198dc62 100644
--- a/svtools/source/edit/texteng.cxx
+++ b/svtools/source/edit/texteng.cxx
@@ -826,8 +826,7 @@ TextPaM TextEngine::ImpInsertText( const TextSelection& rCurSel, const XubString
else
aPaM = rCurSel.GetEnd();
- XubString aText( rStr );
- aText.ConvertLineEnd( LINEEND_LF );
+ XubString aText(convertLineEnd(rStr, LINEEND_LF));
sal_uInt16 nStart = 0;
while ( nStart < aText.Len() )
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx
index fae3fe87f473..d049f3028c6e 100644
--- a/svtools/source/edit/textview.cxx
+++ b/svtools/source/edit/textview.cxx
@@ -2140,8 +2140,7 @@ void TextView::drop( const ::com::sun::star::datatransfer::dnd::DropTargetDropEv
uno::Any aData = xDataObj->getTransferData( aFlavor );
::rtl::OUString aOUString;
aData >>= aOUString;
- aText = aOUString;
- aText.ConvertLineEnd( LINEEND_LF );
+ aText = convertLineEnd(aOUString, LINEEND_LF);
}
}
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index c8e8ab253757..3df6ab9f3f16 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -2126,7 +2126,7 @@ bool HTMLParser::ParseMetaOptionsImpl(
else
{
// convert line endings for Description
- aContent.ConvertLineEnd();
+ aContent = convertLineEnd(aContent, GetSystemLineEnd());
}