[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    A compile error fix patch of KIllustrator (CVS of 16/02)
From:       Toshitaka Fujioka <toshitaka () kde ! gr ! jp>
Date:       2001-02-17 9:58:07
[Download RAW message or body]

Hello,

The following error was displayed when I compiled KIllustrator:

---------------Error message ----------------------------
../share/GObject.h: In method `GObject::GObject(const class QDomElement &)':
In file included from ../share/GGroup.h:28,
                 from XfigImport.cc:31:
../share/GObject.h:70: warning: unused parameter `const class QDomElement & 
element'
../share/GOval.h: In method `void XfigImport::parseArc(class istream &, class 
GDocument *)':
../share/GOval.h:34: `GOval::GOval()' is private
XfigImport.cc:310: within this context
../share/GOval.h: In method `void XfigImport::parseEllipse(class istream &, 
class GDocument *)':
../share/GOval.h:34: `GOval::GOval()' is private
XfigImport.cc:401: within this context
../share/GPolyline.h: In method `void XfigImport::parsePolyline(class istream 
&, class GDocument *)':
../share/GPolyline.h:39: `GPolyline::GPolyline()' is private
XfigImport.cc:439: within this context
../share/GPolygon.h:33: `GPolygon::GPolygon()' is private
XfigImport.cc:442: within this context
../share/GPolygon.h:33: `GPolygon::GPolygon()' is private
XfigImport.cc:445: within this context
../share/GPolygon.h:33: `GPolygon::GPolygon()' is private
XfigImport.cc:448: within this context
../share/GPolygon.h: In method `void XfigImport::parseSpline(class istream &, 
class GDocument *)':
../share/GPolygon.h:33: `GPolygon::GPolygon()' is private
XfigImport.cc:520: within this context
../share/GPolyline.h:39: `GPolyline::GPolyline()' is private
XfigImport.cc:522: within this context
../share/GText.h: In method `void XfigImport::parseText(class istream &, 
class GDocument *)':
../share/GText.h:39: `GText::GText()' is private
XfigImport.cc:584: within this context
make[1]: *** [XfigImport.lo] Error 1
--------------------------------------------------------

I made the patch which fixed this error.

I attached a patch. Please try to use. :-)
If my patch is wrong, please advise.





["koffice-killustrator-CompileError-fix-20010217.diff" (text/x-c++)]

diff -ur koffice.org/killustrator/share/GOval.h koffice/killustrator/share/GOval.h
--- koffice.org/killustrator/share/GOval.h	Sat Feb 17 05:30:46 2001
+++ koffice/killustrator/share/GOval.h	Sat Feb 17 05:35:29 2001
@@ -30,9 +30,8 @@
 class GOval : public GObject
 {
   Q_OBJECT
-   private:
-      GOval():GObject(0) {cout<<"GOval ctor"<<endl; exit(1);};
 public:
+  GOval():GObject(0) {cout<<"GOval ctor"<<endl; exit(1);};
   GOval (GDocument* parent, bool cFlag = false);
   GOval (GDocument* parent, const QDomElement &element, bool cFlag = false);
   GOval (const GOval& obj);
diff -ur koffice.org/killustrator/share/GPolygon.h koffice/killustrator/share/GPolygon.h
--- koffice.org/killustrator/share/GPolygon.h	Sat Feb 17 05:30:46 2001
+++ koffice/killustrator/share/GPolygon.h	Sat Feb 17 05:37:57 2001
@@ -29,9 +29,8 @@
 
 class GPolygon : public GPolyline {
   Q_OBJECT
-   private:
-      GPolygon():GPolyline(0) {cout<<"GPolygon ctor"<<endl; exit(1);};
 public:
+  GPolygon():GPolyline(0) {cout<<"GPolygon ctor"<<endl; exit(1);};
   enum Kind { PK_Square, PK_Rectangle, PK_Polygon };
 
   GPolygon (GDocument* parent, Kind pkind = PK_Polygon);
diff -ur koffice.org/killustrator/share/GPolyline.h koffice/killustrator/share/GPolyline.h
--- koffice.org/killustrator/share/GPolyline.h	Sat Feb 17 05:30:46 2001
+++ koffice/killustrator/share/GPolyline.h	Sat Feb 17 05:36:58 2001
@@ -35,9 +35,8 @@
 class GPolyline : public GObject
 {
    Q_OBJECT
-   private:
-      GPolyline ():GObject(0) {cout<<"GPolyline ctor"<<endl; exit(1);};
 public:
+  GPolyline ():GObject(0) {cout<<"GPolyline ctor"<<endl; exit(1);};
   GPolyline (GDocument* doc);
   GPolyline (GDocument* doc, const QDomElement &element);
   GPolyline (const GPolyline& obj);
diff -ur koffice.org/killustrator/share/GText.h koffice/killustrator/share/GText.h
--- koffice.org/killustrator/share/GText.h	Sat Feb 17 05:30:46 2001
+++ koffice/killustrator/share/GText.h	Sat Feb 17 05:39:02 2001
@@ -35,9 +35,8 @@
 
 class GText : public GObject {
   Q_OBJECT
-   private:
-      GText():GObject(0) {cout<<"GText ctor"<<endl; exit(1);};
 public:
+  GText():GObject(0) {cout<<"GText ctor"<<endl; exit(1);};
 
    struct TextInfo
    {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic