Kaydet (Commit) f96e78a7 authored tarafından Matteo Casalin's avatar Matteo Casalin

OUString: avoid getTokenCount

Change-Id: Icceff0aeb5c6fb70513786366416c2d86b60602a
üst 1f85149f
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <com/sun/star/text/XText.hpp> #include <com/sun/star/text/XText.hpp>
#include <com/sun/star/document/XEventBroadcaster.hpp> #include <com/sun/star/document/XEventBroadcaster.hpp>
#include <comphelper/lok.hxx> #include <comphelper/lok.hxx>
#include <comphelper/string.hxx>
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <vcl/commandinfoprovider.hxx> #include <vcl/commandinfoprovider.hxx>
...@@ -571,9 +570,8 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq ) ...@@ -571,9 +570,8 @@ void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq )
sQuote = "..."; sQuote = "...";
aStr += sQuote + "\"\n"; aStr += sQuote + "\"\n";
sal_Int32 nParaCount = comphelper::string::getTokenCount(aStr, '\n'); for( sal_Int32 nIdx = 0; nIdx >= 0; )
for( sal_Int32 nPara = 0; nPara < nParaCount; nPara++ ) pOutliner->Insert( aStr.getToken( 0, '\n', nIdx ), EE_PARA_APPEND, -1 );
pOutliner->Insert( aStr.getToken( nPara, '\n' ), EE_PARA_APPEND, -1 );
if( pOutliner->GetParagraphCount() > 1 ) if( pOutliner->GetParagraphCount() > 1 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment