summaryrefslogtreecommitdiff
path: root/project2/variables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/variables.cpp')
-rw-r--r--project2/variables.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/variables.cpp b/project2/variables.cpp
index a4a064f..3089510 100644
--- a/project2/variables.cpp
+++ b/project2/variables.cpp
@@ -208,6 +208,7 @@ Variable::create(const Glib::ustring & s, RowUser * dep)
case '*': // parser
return VariableImplPtr(new VariableParse(s.substr(1)));
case '=': // literal (explicit)
+ return VariableImplPtr(new VariableLiteral(s.substr(1)));
default:
return VariableImplPtr(new VariableLiteral(s));
}
@@ -222,8 +223,7 @@ VariableImpl::VariableImpl(const Glib::ustring & src) :
Glib::ustring::const_iterator defaultStart = nameEnd;
if (defaultStart != source.end()) {
defaultStart++;
- Glib::ustring::const_iterator defaultEnd = source.end();
- defaultValue = Glib::ustring(defaultStart, defaultEnd);
+ defaultValue = Glib::ustring(defaultStart, source.end());
}
}