summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/ptokenizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/ptokenizer.cpp')
-rw-r--r--src/lib/netlist/plib/ptokenizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/ptokenizer.cpp b/src/lib/netlist/plib/ptokenizer.cpp
index 80db2d0663a..b7031cbed4e 100644
--- a/src/lib/netlist/plib/ptokenizer.cpp
+++ b/src/lib/netlist/plib/ptokenizer.cpp
@@ -234,7 +234,7 @@ namespace plib {
if (eof())
return token_t(token_type::ENDOFFILE);
if (c == '\r' || c == '\n')
- return token_t(token_type::LINEMARKER, lm);
+ return { token_type::LINEMARKER, lm };
lm += c;
} while (true);
}
@@ -253,7 +253,7 @@ namespace plib {
c = getc();
}
ungetc(c);
- return token_t(ret, tokstr);
+ return { ret, tokstr };
}
// not a number, try identifier
@@ -282,7 +282,7 @@ namespace plib {
tokstr += c;
c = getc();
}
- return token_t(token_type::STRING, tokstr);
+ return { token_type::STRING, tokstr };
}
else
{
@@ -296,7 +296,7 @@ namespace plib {
{
auto id = m_tokens.find(tokstr);
if (id != m_tokens.end())
- return token_t(id->second, tokstr);
+ return { id->second, tokstr };
}
c = getc();
}