You're declaring a local variable (GtkWidget* tree) with the same name as a parameter to your constructor (GAptPkgTree* tree). Rename one of them.

Hope that helps,
-dave

On Sunday, February 9, 2003, at 06:43 PM, Justin Hallett wrote:

C++ problems, any takers?

--------Error
index.cc: In constructor `Index::Index(Indexes*, GAptPkgTree*, Filter*)':
index.cc:56: declaration of `tree' shadows a parameter
make[3]: *** [index.o] Error 1
--------Code
Index::Index(Indexes* indexes, GAptPkgTree* tree, Filter* filter)
: indexes_(indexes), tree_(tree),
cache_(tree_->cache()), filter_(filter)
{
GtkCellRenderer* renderer;
GtkTreeSelection* select;
GtkTreeViewColumn* column;
GtkWidget* tree; <---------***Line 56***

g_return_if_fail(cache_ != 0);
g_return_if_fail(filter_ != 0);
g_return_if_fail(indexes_ != 0);





-=[JFH] Justin F. Hallett <Marketing>
-=[JFH] Blue Falls Manufacturing Ltd. <Arctic Spas>
-=[JFH] [EMAIL PROTECTED]



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to