[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Oct 2 12:35:39 UTC 2005
SVN commit 465840 by okellogg:
g++-3.4 wants virtual destructors
M +1 -0 _graph.h
M +1 -0 autolayouter.h
M +1 -1 canvas.h
M +1 -2 node.h
M +2 -2 simplecanvas.h
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout/_graph.h #465839:465840
@@ -22,6 +22,7 @@
*/
class Graph{
public:
+ virtual ~Graph() {}
virtual void addNode(const char *name, int width,int heigt)=0;
virtual void addEdge(const char* nodea,const char*nodeb,int weight=100)=0;
virtual Node* getNode(const char*)=0;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout/autolayouter.h #465839:465840
@@ -23,6 +23,7 @@
*/
class Autolayouter {
public:
+ virtual ~Autolayouter() {}
virtual void setNoteConnectionWeight(int i)=0;
virtual void setNoteConnectionsAsEdges(bool b)=0;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout/canvas.h #465839:465840
@@ -26,7 +26,7 @@
virtual int getMaxY()=0;
virtual int getBaseX()=0;
virtual int getBaseY()=0;
-
+ virtual ~Canvas() {}
};
}
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout/node.h #465839:465840
@@ -27,12 +27,11 @@
//
public:
- //virtual ~Node();
+ virtual ~Node() {}
virtual int getX()=0;
virtual int getY()=0;
-
};
}
#endif
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/autolayout/simplecanvas.h #465839:465840
@@ -25,8 +25,8 @@
class SimpleCanvas: public Canvas
{
public:
- SimpleCanvas(int i, int j):max_x(i),max_y(j){};
-
+ SimpleCanvas(int i, int j):max_x(i),max_y(j){}
+ virtual ~SimpleCanvas() {}
virtual int getMaxX(){return max_x;}
virtual int getMaxY(){return max_y;}
virtual int getBaseX(){return 0;}
More information about the umbrello-devel
mailing list