Commit 2be47fed authored by Ken Leiter (Civ's avatar Ken Leiter (Civ

STYLE: Remove const qualifier from return of printSelf() --- it is unecessary

parent ed10d434
......@@ -66,7 +66,7 @@ void XdmfAttribute::write(boost::shared_ptr<XdmfVisitor> visitor) const
visitor->visit(this);
}
const std::string XdmfAttribute::printSelf() const
std::string XdmfAttribute::printSelf() const
{
return "<XdmfAttribute>";
}
......@@ -76,7 +76,7 @@ public:
void write(boost::shared_ptr<XdmfVisitor> visitor) const;
virtual const std::string printSelf() const;
virtual std::string printSelf() const;
protected:
......
......@@ -39,7 +39,7 @@ int XdmfGeometry::getDimensions() const
return mGeometryType.getDimensions();
}
const std::string XdmfGeometry::printSelf() const
std::string XdmfGeometry::printSelf() const
{
return "XdmfGeometry";
}
......
......@@ -46,7 +46,7 @@ public:
*/
int getDimensions() const;
virtual const std::string printSelf() const;
virtual std::string printSelf() const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const;
......
......@@ -103,7 +103,7 @@ unsigned int XdmfGrid::getNumberOfAttribute() const
return mAttributes.size();
}
const std::string XdmfGrid::printSelf() const
std::string XdmfGrid::printSelf() const
{
return "XdmfGrid containing a " + mGeometry->printSelf() + " and a " + mTopology->printSelf();
}
......
......@@ -101,7 +101,7 @@ public:
*/
unsigned int getNumberOfAttribute() const;
virtual const std::string printSelf() const;
virtual std::string printSelf() const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const;
......
......@@ -27,8 +27,8 @@ protected:
private:
XdmfItem(const XdmfItem&); // Not implemented.
void operator=(const XdmfItem&); // Not implemented.
XdmfItem(const XdmfItem&); // Not implemented.
void operator=(const XdmfItem&); // Not implemented.
};
......
......@@ -17,7 +17,7 @@ XdmfObject::~XdmfObject()
}
const std::string XdmfObject::printSelf() const
std::string XdmfObject::printSelf() const
{
return "XdmfObject";
}
......
......@@ -24,7 +24,7 @@ class XdmfObject {
public:
virtual const std::string printSelf() const = 0;
virtual std::string printSelf() const = 0;
protected:
......
......@@ -50,7 +50,7 @@ std::string XdmfTopology::getTopologyTypeAsString() const
return mTopologyType.getName();
}
const std::string XdmfTopology::printSelf() const
std::string XdmfTopology::printSelf() const
{
return "XdmfTopology";
}
......
......@@ -63,7 +63,7 @@ public:
/**
*
*/
virtual const std::string printSelf() const;
virtual std::string printSelf() const;
virtual void write(boost::shared_ptr<XdmfVisitor> visitor) const;
......
......@@ -53,7 +53,7 @@ void XdmfVisitor::visit(const XdmfTopology * const topology)
xmlData << std::setw(mTabIndex) << "" << "</Topology>\n";
}
const std::string XdmfVisitor::printSelf() const
std::string XdmfVisitor::printSelf() const
{
return "XdmfVisitor:\n" + xmlData.str();
}
......@@ -28,7 +28,7 @@ public:
virtual void visit(const XdmfTopology * const topology);
const std::string printSelf() const;
virtual std::string printSelf() const;
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment