[Libreoffice-commits] .: sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Fri Jul 8 07:49:07 PDT 2011
sw/source/core/layout/laycache.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4d5c1ab9318481dcb1877c81dfa73ae2052b356b
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date: Fri Jul 8 16:48:44 2011 +0200
Fixed debug build Count() -> size()
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 9b07744..5745fa8 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -363,7 +363,7 @@ sal_Bool SwLayoutCache::CompareLayout( const SwDoc& rDoc ) const
pPage = (SwPageFrm*)pPage->GetNext();
while( pPage )
{
- if( nIndex >= pImpl->Count() )
+ if( nIndex >= pImpl->size() )
{
if( bRet )
bRet = sal_False;
@@ -811,7 +811,7 @@ sal_Bool SwLayHelper::CheckInsert( sal_uLong nNodeIndex )
pImpl->GetBreakIndex( nIndex ) == nNodeIndex ) ) )
bFirst = sal_False;
#if OSL_DEBUG_LEVEL > 1
- sal_uLong nBreakIndex = ( pImpl && nIndex < pImpl->Count() ) ?
+ sal_uLong nBreakIndex = ( pImpl && nIndex < pImpl->size() ) ?
pImpl->GetBreakIndex(nIndex) : 0xffff;
(void)nBreakIndex;
#endif
@@ -826,7 +826,7 @@ sal_Bool SwLayHelper::CheckInsert( sal_uLong nNodeIndex )
if( pImpl || bLongTab )
{
#if OSL_DEBUG_LEVEL > 1
- sal_uLong nBrkIndex = ( pImpl && nIndex < pImpl->Count() ) ?
+ sal_uLong nBrkIndex = ( pImpl && nIndex < pImpl->size() ) ?
pImpl->GetBreakIndex(nIndex) : 0xffff;
(void)nBrkIndex;
#endif
More information about the Libreoffice-commits
mailing list