Commit f9b6c772 authored by Albert Astals Cid's avatar Albert Astals Cid

Make HtmlMetaVar::toString const

parent 5e3e46ec
......@@ -1009,7 +1009,7 @@ HtmlMetaVar::~HtmlMetaVar()
delete content;
}
GooString* HtmlMetaVar::toString()
GooString* HtmlMetaVar::toString() const
{
GooString *result = new GooString("<meta name=\"");
result->append(name);
......@@ -1659,7 +1659,7 @@ void HtmlOutputDev::dumpMetaVars(FILE *file)
{
GooString *var;
for(HtmlMetaVar *t : *glMetaVars)
for(const HtmlMetaVar *t : *glMetaVars)
{
var = t->toString();
fprintf(file, "%s\n", var->c_str());
......
......@@ -208,7 +208,7 @@ public:
HtmlMetaVar(const HtmlMetaVar &) = delete;
HtmlMetaVar& operator=(const HtmlMetaVar &) = delete;
GooString* toString();
GooString* toString() const;
private:
......
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