Support C++98 again (gcc 4.8).

This commit is contained in:
Pavel Sanda 2019-11-06 15:54:27 +01:00
parent 2a2019d77e
commit d6b108d8c3

View File

@ -1175,7 +1175,7 @@ void Preamble::handle_package(Parser &p, string const & name,
if (is_known(name, known_sans_font_packages)) {
h_font_sans[0] = name;
if (contains(opts, "scale")) {
vector<string>::const_iterator it = allopts.begin();
vector<string>::iterator it = allopts.begin();
for (; it != allopts.end() ; ++it) {
string const opt = *it;
if (prefixIs(opt, "scaled=") || prefixIs(opt, "scale=")) {
@ -1383,7 +1383,7 @@ void Preamble::handle_package(Parser &p, string const & name,
if (is_known(name, known_typewriter_font_packages)) {
h_font_typewriter[0] = name;
if (contains(opts, "scale")) {
vector<string>::const_iterator it = allopts.begin();
vector<string>::iterator it = allopts.begin();
for (; it != allopts.end() ; ++it) {
string const opt = *it;
if (prefixIs(opt, "scaled=") || prefixIs(opt, "scale=")) {