- Updated DOM to use Variant ovjects, which carry a type which improves
  expression evaluation.
This commit is contained in:
Paul Beckingham 2014-06-11 21:53:00 -04:00
parent e8474fc145
commit 456b982ced
5 changed files with 76 additions and 73 deletions

View file

@ -25,6 +25,7 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <Variant.h>
#include <Context.h>
#include <main.h>
#include <text.h>
@ -58,10 +59,10 @@ int CmdGet::execute (std::string& output)
for (word = words.begin (); word != words.end (); ++word)
{
Task t;
std::string result;
Variant result;
if (context.dom.get (*word, t, result))
{
results.push_back (result);
results.push_back ((std::string) result);
found = true;
}
}