[kgraphviewer-devel] [KGraphViewer/libkgraphviz] c0d52be: Minor: Remove redundant code.
Kevin Funk
krf at electrostorm.net
Thu Dec 16 14:42:38 CET 2010
commit c0d52be52a4e1980fa86f3e6f7ee734801c73780
branch libkgraphviz
Author: Kevin Funk <krf at electrostorm.net>
Date: Thu Dec 16 14:29:41 2010 +0100
Minor: Remove redundant code.
No need to call the default constructor of data members explicitly.
diff --git a/src/kgraphviz/graphedge.cpp b/src/kgraphviz/graphedge.cpp
index 05d53a2..e4332d5 100644
--- a/src/kgraphviz/graphedge.cpp
+++ b/src/kgraphviz/graphedge.cpp
@@ -45,9 +45,7 @@ namespace KGraphViz
GraphEdge::GraphEdge() :
GraphElement(),
m_fromNode(0),m_toNode(0),
- m_colors(),
- m_dir(DOT_DEFAULT_EDGE_DIR),
- m_arrowheads()
+ m_dir(DOT_DEFAULT_EDGE_DIR)
{
// kDebug() ;
}
diff --git a/src/kgraphviz/graphelement.cpp b/src/kgraphviz/graphelement.cpp
index 59b69bd..07c65e9 100644
--- a/src/kgraphviz/graphelement.cpp
+++ b/src/kgraphviz/graphelement.cpp
@@ -53,9 +53,7 @@ GraphElementPrivate::GraphElementPrivate(const GraphElementPrivate& other) :
GraphElement::GraphElement() :
QObject(),
- d_ptr(new GraphElementPrivate),
- m_attributes(),
- m_originalAttributes()
+ d_ptr(new GraphElementPrivate)
{
/* label("");
id("");
@@ -72,9 +70,7 @@ GraphElement::GraphElement() :
GraphElement::GraphElement(const GraphElement& element) :
QObject(),
- d_ptr(element.d_ptr),
- m_attributes(),
- m_originalAttributes()
+ d_ptr(element.d_ptr)
{
kDebug() ;
updateWithElement(element);
diff --git a/src/kgraphviz/graphsubgraph.cpp b/src/kgraphviz/graphsubgraph.cpp
index a19122b..28d7f38 100644
--- a/src/kgraphviz/graphsubgraph.cpp
+++ b/src/kgraphviz/graphsubgraph.cpp
@@ -38,12 +38,12 @@ namespace KGraphViz
//
GraphSubgraph::GraphSubgraph() :
- GraphElement(), m_content()
+ GraphElement()
{
}
GraphSubgraph::GraphSubgraph(graph_t* sg) :
- GraphElement(), m_content()
+ GraphElement()
{
updateWithSubgraph(sg);
}
More information about the kgraphviewer-devel
mailing list