summaryrefslogtreecommitdiffstats
path: root/src/symbol.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbol.hpp')
-rw-r--r--src/symbol.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/symbol.hpp b/src/symbol.hpp
index 68222e2..0e79eb6 100644
--- a/src/symbol.hpp
+++ b/src/symbol.hpp
@@ -39,7 +39,7 @@ enum symbol_type_t {
};
struct symbol_t : public std::tuple<symbol_type_t, std::string> {
- symbol_t(symbol_type_t type, const char *value) : std::tuple<symbol_type_t, std::string>(type, value) {}
+ symbol_t(symbol_type_t type, const std::string &value) : std::tuple<symbol_type_t, std::string>(type, value) {}
symbol_type_t get_type() const {
return std::get<0>(*this);
@@ -49,11 +49,11 @@ struct symbol_t : public std::tuple<symbol_type_t, std::string> {
return std::get<1>(*this);
}
- static symbol_t make_nonterm(const char *value) {
+ static symbol_t make_nonterm(const std::string &value) {
return symbol_t(SYMBOL_TYPE_NONTERM, value);
}
- static symbol_t make_term(const char *value) {
+ static symbol_t make_term(const std::string &value) {
return symbol_t(SYMBOL_TYPE_TERM, value);
}