Bug 129721

Summary: C++ code generator does not qualify member functions
Product: [Applications] umbrello Reporter: Brad Markel <tigera>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: 1.5.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brad Markel 2006-06-23 22:08:58 UTC
Version:           1.5.2 (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
Compiler:          gcc-4.0.3 
OS:                Linux

Perhaps this is only a matter of style, but it would be nice to see that class members were qualified in their implementation file.  Right now, for a class C with member M, the definition doesn't start with C::, instead only listing the function name:
//C.h header:

class C
{
   public:
   void Fxn();
};

//C.cpp implementation (as generated by Umbrello):
void Fxn() {
}

  This could cause name collisions, especially when dealing with multiple inheritance, that could cause a large project not to compile and cause problems with other compilers besides gcc.
Comment 1 Brad Markel 2006-06-24 01:07:06 UTC
Yeah, stupid me, this is a duplicate of 126489.  That's twice today...