diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-09 12:06:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-09 12:50:03 +0000 |
commit | f6217fad81482d0225fa88b4ef8eab16a9757ece (patch) | |
tree | 93c3b9f762fe68b4fee6e6c6720366b9a22d27a6 /sw/source | |
parent | dd2ad11a5fe63dbd954331b8f532a12caeee710b (diff) |
cppcheck: unused variables
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/text/txthyph.cxx | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx index dfba164b9dcc..bc16099f9c90 100644 --- a/sw/source/core/text/txthyph.cxx +++ b/sw/source/core/text/txthyph.cxx @@ -260,22 +260,6 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf ) if( bRet ) { XubString aSelTxt( rInf.GetTxt().Copy(nWrdStart, nLen) ); - xub_StrLen nCnt = 0; - -// these things should be handled by the dialog -// for( xub_StrLen i = 0; i < nLen; ++i ) -// { -// sal_Unicode cCh = aSelTxt.GetChar(i); -// if( (CH_TXTATR_BREAKWORD == cCh || CH_TXTATR_INWORD == cCh ) -// && rInf.HasHint( nWrdStart + i ) ) -// { -// aSelTxt.Erase( i , 1 ); -// nCnt++; -// --nLen; -// if( i ) -// --i; -// } -// } { MSHORT nMinTrail = 0; @@ -293,7 +277,7 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf ) { rHyphInf.SetHyphWord( xHyphWord ); rHyphInf.nWordStart = nWrdStart; - rHyphInf.nWordLen = nLen+nCnt; + rHyphInf.nWordLen = nLen; rHyphInf.SetNoLang( sal_False ); rHyphInf.SetCheck( sal_True ); } |