Unused variable in perlparser.cpp
luc willems
Willems.luc at pandora.be
Mon Feb 23 19:02:30 GMT 2004
It was indeed a missing implementation after converting to the new codemodel
framework. I've update the CVS code. As convention , subroutines beginning
with _ are prive to the package/class.
luc
On Sunday 22 February 2004 21:01, Saki Arkoudopoulos wrote:
> 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«
--
Willems Luc
Email : willems.luc (at) pandora.be
GnuPG public key : http://users.pandora.be/willems.luc/keys/luc.gpg
We the unwilling,
led by the unknowing,
are doing the impossible
for the ungrateful.
We have done so much for so long with so little
We are now qualified to do anything with nothing
see http://www.perl.com/pub/a/2003/07/16/soto2003.html?page=1
-
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