Fix qstring cache

svn path=/trunk/kdebase/kdepasswd/; revision=355587
This commit is contained in:
Laurent Montel 2004-10-18 12:08:14 +00:00
parent 56921622c8
commit 86ce912595

View file

@ -255,8 +255,8 @@ int PasswdProcess::ConversePasswd(const char *oldpass, const char *newpass,
bool PasswdProcess::isPrompt(QCString line, const char *word)
{
unsigned i, j, colon;
for (i=0,j=0,colon=0; i<line.length(); i++)
unsigned int lineLength(line.length());
for (i=0,j=0,colon=0; i<lineLength; i++)
{
if (line[i] == ':')
{