diff options
author | Bartosz Kosiorek <gang65@openoffice.org> | 2010-09-23 07:38:41 +0200 |
---|---|---|
committer | Bartosz Kosiorek <gang65@openoffice.org> | 2010-09-23 07:38:41 +0200 |
commit | 6b012adb2dea1d85d1277fdeead554fd1ac1a76d (patch) | |
tree | 16eb1eaac9e2fdbcc6bdb4271e3109a5e078f843 /editeng | |
parent | 0873bb16c539d9fe60d4b343894c279671051aa0 (diff) |
svarray: #i112395#: silent warning
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 8aa7741cf8ab..fa939ddd0d5d 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -2012,13 +2012,13 @@ void ImpEditEngine::InitWritingDirections( USHORT nPara ) ubidi_setPara( pBidi, reinterpret_cast<const UChar *>(aText.GetBuffer()), aText.Len(), nBidiLevel, NULL, &nError ); // UChar != sal_Unicode in MinGW nError = U_ZERO_ERROR; - long nCount = ubidi_countRuns( pBidi, &nError ); + size_t nCount = ubidi_countRuns( pBidi, &nError ); int32_t nStart = 0; int32_t nEnd; UBiDiLevel nCurrDir; - for ( size_t nIdx = 0; nIdx < static_cast<size_t>(nCount); ++nIdx ) + for ( size_t nIdx = 0; nIdx < nCount; ++nIdx ) { ubidi_getLogicalRun( pBidi, nStart, &nEnd, &nCurrDir ); rInfos.push_back( WritingDirectionInfo( nCurrDir, (USHORT)nStart, (USHORT)nEnd ) ); |