diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 13:15:57 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 13:15:57 -0400 |
commit | 881fa8d5cbb937b033f87f7da813419895b31b28 (patch) | |
tree | 6ba4e6085e7ea9b6083d2b00a28b817fc2ccc214 /editeng | |
parent | 4e24d472f693c458b17d2ba1fb6c883aaf9c3b27 (diff) |
More dbgutil build fix.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 091c329885d5..83396c90a0c9 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -1697,7 +1697,7 @@ void ImpEditEngine::CreateAndInsertEmptyLine( ParaPortion* pParaPortion, sal_uIn { // -2: The new one is already inserted. #ifdef DBG_UTIL - EditLine* pLastLine = pParaPortion->GetLines().GetObject( pParaPortion->GetLines().Count()-2 ); + EditLine* pLastLine = pParaPortion->GetLines()[pParaPortion->GetLines().Count()-2]; DBG_ASSERT( pLastLine, "soft wrap no line?!" ); DBG_ASSERT( pLastLine->GetEnd() == pParaPortion->GetNode()->Len(), "different anyway?" ); #endif diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index dd45a57bcc4c..63b9402c8ee9 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -1167,9 +1167,9 @@ EditTextObject* ImpEditEngine::CreateBinTextObject( EditSelection aSel, SfxItemP sal_uInt16 nTest; int nTPLen = 0, nTxtLen = 0; for ( nTest = pParaPortion->GetTextPortions().Count(); nTest; ) - nTPLen += pParaPortion->GetTextPortions().GetObject( --nTest )->GetLen(); + nTPLen += pParaPortion->GetTextPortions()[--nTest]->GetLen(); for ( nTest = pParaPortion->GetLines().Count(); nTest; ) - nTxtLen += pParaPortion->GetLines().GetObject( --nTest )->GetLen(); + nTxtLen += pParaPortion->GetLines()[--nTest]->GetLen(); DBG_ASSERT( ( nTPLen == pParaPortion->GetNode()->Len() ) && ( nTxtLen == pParaPortion->GetNode()->Len() ), "CreateBinTextObject: ParaPortion not completely formatted!" ); #endif } @@ -1363,9 +1363,9 @@ EditSelection ImpEditEngine::InsertBinTextObject( BinTextObject& rTextObject, Ed sal_uInt16 nTest; int nTPLen = 0, nTxtLen = 0; for ( nTest = pParaPortion->GetTextPortions().Count(); nTest; ) - nTPLen += pParaPortion->GetTextPortions().GetObject( --nTest )->GetLen(); + nTPLen += pParaPortion->GetTextPortions()[--nTest]->GetLen(); for ( nTest = pParaPortion->GetLines().Count(); nTest; ) - nTxtLen += pParaPortion->GetLines().GetObject( --nTest )->GetLen(); + nTxtLen += pParaPortion->GetLines()[--nTest]->GetLen(); DBG_ASSERT( ( nTPLen == pParaPortion->GetNode()->Len() ) && ( nTxtLen == pParaPortion->GetNode()->Len() ), "InsertBinTextObject: ParaPortion not completely formatted!" ); #endif } |