diff options
author | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-10-29 03:00:39 +0000 |
commit | 97f5151099967e6c823d640a90d87bca92c44035 (patch) | |
tree | 685caa49488599f87d0caa4e972833b2263d8567 /dviware/dvisvgm/src/GFReader.cpp | |
parent | 25a647b97ef526aefcc75269dd19c46dbe3ae4c1 (diff) |
CTAN sync 201910290300
Diffstat (limited to 'dviware/dvisvgm/src/GFReader.cpp')
-rw-r--r-- | dviware/dvisvgm/src/GFReader.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dviware/dvisvgm/src/GFReader.cpp b/dviware/dvisvgm/src/GFReader.cpp index 3cba8e5069..32ba354443 100644 --- a/dviware/dvisvgm/src/GFReader.cpp +++ b/dviware/dvisvgm/src/GFReader.cpp @@ -106,11 +106,8 @@ int GFReader::executeCommand () { cmdPaint0(opcode); else if (opcode >= 74 && opcode <= 238) cmdNewRow(opcode-74); - else if (opcode >= 250) { - ostringstream oss; - oss << "undefined GF command (opcode " << opcode << ")"; - throw GFException(oss.str()); - } + else if (opcode >= 250) + throw GFException("undefined GF command (opcode " + std::to_string(opcode) + ")"); else { int offset = opcode <= 73 ? 64 : 239-(73-64+1); const GFCommand &cmd = commands[opcode-offset]; |