work on the streamer class. A little optimization to the string class. Formatting work.
diff --git a/tinyxml2.h b/tinyxml2.h
index ddf285f..7356dc5 100644
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -256,11 +256,12 @@
};
+// FIXME: break out into string pointer stack
class StringStack
{
public:
StringStack();
- ~StringStack() { delete[] mem; }
+ ~StringStack();
void Push( const char* str );
const char* Pop();
@@ -272,12 +273,12 @@
INIT=10 // fixme, super small for testing
};
char* mem;
+ char pool[INIT];
int inUse; // includes null
int allocated; // bytes allocated
int nPositive; // number of strings with len > 0
};
-
class XMLStreamer
{
public: