Kaydet (Commit) d5a5be9e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unreachable code

üst 779ae5ee
...@@ -535,7 +535,7 @@ bool WinGlyphFallbackSubstititution::HasMissingChars( const ImplFontData* pFace, ...@@ -535,7 +535,7 @@ bool WinGlyphFallbackSubstititution::HasMissingChars( const ImplFontData* pFace,
int nMatchCount = 0; int nMatchCount = 0;
// static const int nMaxMatchCount = 1; // TODO: tolerate more missing characters? // static const int nMaxMatchCount = 1; // TODO: tolerate more missing characters?
const sal_Int32 nStrLen = rMissingChars.getLength(); const sal_Int32 nStrLen = rMissingChars.getLength();
for( sal_Int32 nStrIdx = 0; nStrIdx < nStrLen; ++nStrIdx ) for( sal_Int32 nStrIdx = 0; nStrIdx < nStrLen; /* ++nStrIdx unreachable code, see the 'break' below */ )
{ {
const sal_UCS4 uChar = rMissingChars.iterateCodePoints( &nStrIdx ); const sal_UCS4 uChar = rMissingChars.iterateCodePoints( &nStrIdx );
nMatchCount += pCharMap->HasChar( uChar ); nMatchCount += pCharMap->HasChar( uChar );
......
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