[Bug 62505] New: friend declaration require class-key's

leon pennington leon at leonscape.co.uk
Mon Aug 11 17:34:02 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=62505     
           Summary: friend declaration require class-key's
           Product: kdevelop
           Version: 2.1.5
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: leon at leonscape.co.uk


Version:           2.1.5 (using KDE KDE 3.1.3)
Installed from:    Debian testing/unstable Packages
Compiler:          3.3.1 
OS:          Linux

When I'm using the application wizard for KDE MDI project, the header files for xxxxview.h and xxxxdoc.h both miss out of the friend declaration the class key word in their class definitions.

i.e.

class xxxxView : public QWidget
{
  Q_OBJECT

  friend xxxxDoc;

should be:

  friend class xxxxDoc;

this leads too 'friend declaration requires class-key' error's.

a bit trivial to fix but could be confusing to people that don't normally use friend classes in their class definitions.




More information about the KDevelop-devel mailing list