summaryrefslogtreecommitdiff
path: root/svtools/source/edit
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/source/edit
parent47e1e8494dde85414d28efafa99b33a62b59116d (diff)
refactor ConvertLineEnd
Diffstat (limited to 'svtools/source/edit')
-rw-r--r--svtools/source/edit/texteng.cxx3
-rw-r--r--svtools/source/edit/textview.cxx3
2 files changed, 2 insertions, 4 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);
}
}