trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] c/c++ gurus - Help? [ was Re: [trinity-devel] Now kipi-plugins failing?? error: redeclaration of 'TQListViewItemIterator it']

From: "David C. Rankin" <drankinatty@...>
Date: Thu, 12 Apr 2012 23:03:43 -0500
On 04/10/2012 06:53 PM, Timothy Pearson wrote:
> I think I see the problem, but haven't recompiled to test if this idea
> resolves it for sure.
> 
> It looks like for whatever reason gcc < 4.7 was't barfing when the new
> "it" object was created within the scope of the existing "it" object,
> which was created within the for loop definition.  Thus, gcc's new
> behaviour is definitely correct.
> 
> The easiest fix is to replace all instances of
> "TQListViewItemIterator it(d->listView);"
> with
> "TQListViewItemIterator it2(d->listView);"
> or similar.

Thank you Tim!

  I'll give it a go and report back.

-- 
David C. Rankin, J.D.,P.E.