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 class CocoaUtils
{ {
public: public:
static void endApplication(); static void endApplication();
static void nslog(const std::string &str, void *userdata); static void nslog(const std::string &str, void *userdata);
}; };

View File

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