diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-17 22:50:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-17 22:50:15 +0000 |
commit | e7dfe5ab98e759081fc73990ed6c1ac6910a105d (patch) | |
tree | 1635f79c86856a6aa57a45b8b952b651ef9fcba9 /Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp | |
parent | ae542350b1e3add10d4ee3d7b68f610132f31a50 (diff) |
dvisvgm 2.3.1 (patched)
git-svn-id: svn://tug.org/texlive/trunk@46352 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp index 6e1aafd699e..5385188f370 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/DVIToSVG.hpp @@ -2,7 +2,7 @@ ** DVIToSVG.hpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2018 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -30,11 +30,9 @@ struct DVIActions; class Matrix; struct SVGOutputBase; -class DVIToSVG : public DVIReader -{ +class DVIToSVG : public DVIReader { public: explicit DVIToSVG (std::istream &is, SVGOutputBase &out); - ~DVIToSVG (); void convert (const std::string &range, std::pair<int,int> *pageinfo=0); void setPageSize (const std::string &format) {_bboxFormatString = format;} void setPageTransformation (const std::string &cmds) {_transCmds = cmds;} @@ -54,7 +52,7 @@ class DVIToSVG : public DVIReader static char TRACE_MODE; protected: - DVIToSVG (const DVIToSVG&); + DVIToSVG (const DVIToSVG&) =delete; void convert (unsigned firstPage, unsigned lastPage, std::pair<int,int> *pageinfo=0); int executeCommand () override; void enterBeginPage (unsigned pageno, const std::vector<int32_t> &c); @@ -82,7 +80,7 @@ class DVIToSVG : public DVIReader private: SVGTree _svg; SVGOutputBase &_out; - DVIActions *_actions; + std::unique_ptr<DVIActions> _actions; std::string _bboxFormatString; ///< bounding box size/format set by the user std::string _transCmds; ///< page transformation commands set by the user double _pageHeight, _pageWidth; ///< global page height and width stored in the postamble |