Unused variable in perlparser.cpp

Saki Arkoudopoulos saki82 at yahoo.com
Sun Feb 22 20:01:24 GMT 2004


Hi,
 
I don't really know where to post this (or even if
this is worth posting) but in the file perlparser.cpp
there is an unused variable. 
The unused variable is 'bool privatesub', found on
line 411.
 
It is given to the function as an argument, but it
isn't used in this function.

So the correct function should be:

============
void perlparser::addPackageSub(const QString& fileName
,int lineNr ,const QString& name)
 {
 kdDebug(9016) << "addPackageSub[ " << name << "]" <<
endl;
 FunctionDom method =
m_model->create<FunctionModel>();
 method->setName(name);
 method->setFileName( fileName );
 method->setStartPosition( lineNr, 0 );
 if (m_lastpackage) {
 if (!m_lastpackage->hasFunction(method->name()))
 m_lastpackage->addFunction(method);
 } else {
 kdDebug(9016) << "addPackageSub[ no m_file]" << endl;
 }
 m_lastsub=name;
 }
============


Greetings,
 
Saki Arkoudopoulos

=====
==================================================

Arkoudopoulos Saki
Student Computer Science at the LUC/tUL
website : http://lumumba.luc.ac.be/~saki

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list