summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-05-04 04:54:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-05-04 04:54:00 +0000
commit1bab9f565782a0f389314cb1a5dfc6f597d96e22 (patch)
treecda8c972ba15244ffa89e88d743a2cdce0fa99e6 /Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp
parent90faf12dc7ac78559d3bb81953320d776a835e4b (diff)
dvisvgm-2.4
git-svn-id: svn://tug.org/texlive/trunk@47608 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp
index 83f167e428e..1b7b172cedc 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/EmSpecialHandler.cpp
@@ -138,7 +138,7 @@ static double read_length (InputReader &in) {
}
-bool EmSpecialHandler::process (const char *prefix, istream &is, SpecialActions &actions) {
+bool EmSpecialHandler::process (const string &prefix, istream &is, SpecialActions &actions) {
// em:moveto => move graphic cursor to dvi position
// em:lineto => draw line from graphic cursor to dvi cursor, then move graphic cursor to dvi position
// em:linewidth <w> => set line width to <w>
@@ -167,7 +167,7 @@ bool EmSpecialHandler::process (const char *prefix, istream &is, SpecialActions
};
StreamInputReader ir(is);
- string cmdstr = ir.getWord();
+ const string cmdstr = ir.getWord();
for (Command *cmd=commands; cmd->name; cmd++) {
if (cmdstr == cmd->name) {
(this->*cmd->handler)(ir, actions);
@@ -258,7 +258,7 @@ void EmSpecialHandler::dviEndPage (unsigned pageno, SpecialActions &actions) {
}
-const vector<const char*> EmSpecialHandler::prefixes () const {
- const vector<const char*> pfx {"em:"};
+vector<const char*> EmSpecialHandler::prefixes() const {
+ vector<const char*> pfx {"em:"};
return pfx;
}