diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 11:31:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 13:18:38 +0000 |
commit | bbc94edb9a91b27910d43610db9994df10dd99e1 (patch) | |
tree | 99f81b7bc96dd93ae6c6e6a4f7a57cfda72cdfa4 /starmath | |
parent | make svl ByteString free (diff) | |
download | core-bbc94edb9a91b27910d43610db9994df10dd99e1.tar.gz core-bbc94edb9a91b27910d43610db9994df10dd99e1.zip |
refactor ConvertLineEnd
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/accessibility.cxx | 3 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index e70301dbcaa2..c2d81f3b3b44 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1009,8 +1009,7 @@ String SmTextForwarder::GetText( const ESelection& rSel ) const String aRet; if (pEditEngine) aRet = pEditEngine->GetText( rSel, LINEEND_LF ); - aRet.ConvertLineEnd(); - return aRet; + return convertLineEnd(aRet, GetSystemLineEnd()); } SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib ) const diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 34425ab6acc7..787695685f58 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -2443,8 +2443,7 @@ SmNode *SmParser::Parse(const String &rBuffer) { ClearUsedSymbols(); - m_aBufferString = rBuffer; - m_aBufferString.ConvertLineEnd( LINEEND_LF ); + m_aBufferString = convertLineEnd(rBuffer, LINEEND_LF); m_nBufferIndex = 0; m_nTokenIndex = 0; m_Row = 1; @@ -2468,8 +2467,7 @@ SmNode *SmParser::Parse(const String &rBuffer) SmNode *SmParser::ParseExpression(const String &rBuffer) { - m_aBufferString = rBuffer; - m_aBufferString.ConvertLineEnd( LINEEND_LF ); + m_aBufferString = convertLineEnd(rBuffer, LINEEND_LF); m_nBufferIndex = 0; m_nTokenIndex = 0; m_Row = 1; |