utils/HtmlOutputDev.cc | 4 ++-- utils/HtmlOutputDev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit f9b6c772bf53e195871c687f7314c7001db6647b Author: Albert Astals Cid <[email protected]> Date: Tue Dec 3 15:31:14 2019 +0100 Make HtmlMetaVar::toString const diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index dfc818cf..c86587ef 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -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()); diff --git a/utils/HtmlOutputDev.h b/utils/HtmlOutputDev.h index 348d5d28..e5823d27 100644 --- a/utils/HtmlOutputDev.h +++ b/utils/HtmlOutputDev.h @@ -208,7 +208,7 @@ public: HtmlMetaVar(const HtmlMetaVar &) = delete; HtmlMetaVar& operator=(const HtmlMetaVar &) = delete; - GooString* toString(); + GooString* toString() const; private: _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
