Various whitespace fixes

master
Ben Gamari 2014-04-28 13:25:04 -04:00
parent ff466c2189
commit b5337ad338
3 changed files with 19 additions and 19 deletions

View File

@ -5,6 +5,6 @@
class CocoaUtils
{
public:
static void endApplication();
static void nslog(const std::string &str, void *userdata);
static void endApplication();
static void nslog(const std::string &str, void *userdata);
};

View File

@ -3,4 +3,4 @@
#include <string>
std::string lookup_file(const std::string &filename,
const std::string &path, const std::string &fallbackpath);
const std::string &path, const std::string &fallbackpath);

View File

@ -9,25 +9,25 @@
class NodeDumper : public Visitor
{
public:
/*! If idPrefix is true, we will output "n<id>:" in front of each node,
which is useful for debugging. */
NodeDumper(NodeCache &cache, bool idPrefix = false) :
cache(cache), idprefix(idPrefix), root(NULL) { }
virtual ~NodeDumper() {}
/*! If idPrefix is true, we will output "n<id>:" in front of each node,
which is useful for debugging. */
NodeDumper(NodeCache &cache, bool idPrefix = false) :
cache(cache), idprefix(idPrefix), root(NULL) { }
virtual ~NodeDumper() {}
virtual Response visit(State &state, const AbstractNode &node);
virtual Response visit(State &state, const AbstractNode &node);
private:
void handleVisitedChildren(const State &state, const AbstractNode &node);
bool isCached(const AbstractNode &node) const;
void handleIndent(const State &state);
std::string dumpChildren(const AbstractNode &node);
void handleVisitedChildren(const State &state, const AbstractNode &node);
bool isCached(const AbstractNode &node) const;
void handleIndent(const State &state);
std::string dumpChildren(const AbstractNode &node);
NodeCache &cache;
bool idprefix;
NodeCache &cache;
bool idprefix;
std::string currindent;
const AbstractNode *root;
typedef std::list<const AbstractNode *> ChildList;
std::map<int, ChildList> visitedchildren;
std::string currindent;
const AbstractNode *root;
typedef std::list<const AbstractNode *> ChildList;
std::map<int, ChildList> visitedchildren;
};