[Libreoffice-commits] .: editeng/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Apr 3 08:44:31 PDT 2012


 editeng/source/editeng/editdbg.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2c4e811049e9f2cad823e372a01a5afc09ead25c
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue Apr 3 11:44:06 2012 -0400

    Fix the dbgutil build.

diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx
index 48f6e00..9142ec1 100644
--- a/editeng/source/editeng/editdbg.cxx
+++ b/editeng/source/editeng/editdbg.cxx
@@ -384,7 +384,7 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
         sal_uLong n = 0;
         for ( z = 0; z < nTextPortions; z++ )
         {
-            TextPortion* pPortion = pPPortion->GetTextPortions().GetObject( z );
+            TextPortion* pPortion = pPPortion->GetTextPortions()[z];
             aPortionStr.append(' ');
             aPortionStr.append(static_cast<sal_Int32>(pPortion->GetLen()));
             aPortionStr.append('(');
@@ -409,7 +409,7 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
         sal_uInt16 nLine;
         for ( nLine = 0; nLine < pPPortion->GetLines().Count(); nLine++ )
         {
-            EditLine* pLine = pPPortion->GetLines().GetObject( nLine );
+            EditLine* pLine = pPPortion->GetLines()[nLine];
 
             rtl::OString aLine(rtl::OUStringToOString(pPPortion->GetNode()->Copy(pLine->GetStart(), pLine->GetEnd() - pLine->GetStart()), RTL_TEXTENCODING_ASCII_US));
             fprintf( fp, "\nLine %i\t>%s<", nLine, aLine.getStr() );
@@ -417,7 +417,7 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox )
         // then the internal data ...
         for ( nLine = 0; nLine < pPPortion->GetLines().Count(); nLine++ )
         {
-            EditLine* pLine = pPPortion->GetLines().GetObject( nLine );
+            EditLine* pLine = pPPortion->GetLines()[nLine];
             fprintf( fp, "\nZeile %i:\tStart: %i,\tEnd: %i", nLine, pLine->GetStart(), pLine->GetEnd() );
             fprintf( fp, "\t\tPortions: %i - %i.\tHight: %i, Ascent=%i", pLine->GetStartPortion(), pLine->GetEndPortion(), pLine->GetHeight(), pLine->GetMaxAscent() );
         }


More information about the Libreoffice-commits mailing list