Cppcheck warning.
--HG-- branch : feature
This commit is contained in:
parent
e86777d728
commit
62d3d5283a
|
@ -193,7 +193,6 @@ void VTextManager::FitFontSize(qreal fW, qreal fH)
|
|||
// get ratio between char width and height
|
||||
|
||||
int iMaxLen = 0;
|
||||
int iTW;
|
||||
QFont fnt;
|
||||
for (int i = 0; i < GetSourceLinesCount(); ++i)
|
||||
{
|
||||
|
@ -203,7 +202,7 @@ void VTextManager::FitFontSize(qreal fW, qreal fH)
|
|||
fnt.setWeight(tl.m_eFontWeight);
|
||||
fnt.setStyle(tl.m_eStyle);
|
||||
QFontMetrics fm(fnt);
|
||||
iTW = fm.width(GetSourceLine(i).m_qsText);
|
||||
const int iTW = fm.width(GetSourceLine(i).m_qsText);
|
||||
if (iTW > iMaxLen)
|
||||
{
|
||||
iMaxLen = iTW;
|
||||
|
|
Loading…
Reference in New Issue
Block a user