aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arraylist.h2
-rw-r--r--src/cgi.h2
-rw-r--r--src/connection.h2
-rw-r--r--src/connectionmanager.h2
-rw-r--r--src/flexbuf.h2
-rw-r--r--src/hashfunctioncasestring.h2
-rw-r--r--src/hashfunctionint.h2
-rw-r--r--src/hashfunctionstring.h2
-rw-r--r--src/hashtable.h2
-rw-r--r--src/http.h2
-rw-r--r--src/linkedlist.h2
-rw-r--r--src/md5.h2
-rw-r--r--src/multilog.h4
-rw-r--r--src/multilogtext.h2
-rw-r--r--src/pqueue.h2
-rw-r--r--src/programchain.h2
-rw-r--r--src/protocoltelnet.h2
-rw-r--r--src/ringlist.h2
-rw-r--r--src/serializerbinary.h2
-rw-r--r--src/serializerbzip2.h2
-rw-r--r--src/serializertext.h2
-rw-r--r--src/staticstring.h2
-rw-r--r--src/test/xmlwritetest/xmlwritetest.cpp7
-rw-r--r--src/tokenstring.h2
-rw-r--r--src/xmldocument.h2
-rw-r--r--src/xmlfilereader.h2
-rw-r--r--src/xmlfilewriter.h2
-rw-r--r--src/xmlnode.h2
-rw-r--r--src/xmlreader.h2
-rw-r--r--src/xmlstringreader.h2
-rw-r--r--src/xmlstringwriter.h2
-rw-r--r--src/xmlwriter.h2
32 files changed, 39 insertions, 32 deletions
diff --git a/src/arraylist.h b/src/arraylist.h
index 74992cf..0fda34a 100644
--- a/src/arraylist.h
+++ b/src/arraylist.h
@@ -24,7 +24,7 @@ public:
24 /** 24 /**
25 * Destroy the ArrayList 25 * Destroy the ArrayList
26 */ 26 */
27 ~ArrayList(); 27 virtual ~ArrayList();
28 28
29 void *getAt( int nIndex ); 29 void *getAt( int nIndex );
30 void append( void *pData ); 30 void append( void *pData );
diff --git a/src/cgi.h b/src/cgi.h
index 8e9a584..01142b5 100644
--- a/src/cgi.h
+++ b/src/cgi.h
@@ -43,7 +43,7 @@ public:
43 /** 43 /**
44 * Destroy the cgi object. 44 * Destroy the cgi object.
45 */ 45 */
46 ~Cgi( ); 46 virtual ~Cgi( );
47 47
48 /** 48 /**
49 * Get's the value for a variable as a character string. The name is the 49 * Get's the value for a variable as a character string. The name is the
diff --git a/src/connection.h b/src/connection.h
index dd4112b..29fcc25 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -34,7 +34,7 @@ public:
34 * such an operation could take considerable time, depending on the pending 34 * such an operation could take considerable time, depending on the pending
35 * data and state of the receiving end. 35 * data and state of the receiving end.
36 */ 36 */
37 ~Connection(); 37 virtual ~Connection();
38 38
39 /** 39 /**
40 * Open a connection to a remote server. This sets up this connection as 40 * Open a connection to a remote server. This sets up this connection as
diff --git a/src/connectionmanager.h b/src/connectionmanager.h
index da49a39..85eb7ad 100644
--- a/src/connectionmanager.h
+++ b/src/connectionmanager.h
@@ -33,7 +33,7 @@ public:
33 * Cleans up everything, and even clears out all still-connected Connection 33 * Cleans up everything, and even clears out all still-connected Connection
34 * objects. 34 * objects.
35 */ 35 */
36 ~ConnectionManager(); 36 virtual ~ConnectionManager();
37 37
38 /** 38 /**
39 * Starts a server socket and binds to it, listening for new connections. 39 * Starts a server socket and binds to it, listening for new connections.
diff --git a/src/flexbuf.h b/src/flexbuf.h
index 5ce4a89..a68dcc6 100644
--- a/src/flexbuf.h
+++ b/src/flexbuf.h
@@ -24,7 +24,7 @@ public:
24 /** 24 /**
25 * Clean up the FlexBuf, delete all buffers. 25 * Clean up the FlexBuf, delete all buffers.
26 */ 26 */
27 ~FlexBuf(); 27 virtual ~FlexBuf();
28 28
29 /** Appends a whole string of data to the buffer. The string 29 /** Appends a whole string of data to the buffer. The string
30 * must be null terminated. 30 * must be null terminated.
diff --git a/src/hashfunctioncasestring.h b/src/hashfunctioncasestring.h
index 9ca3d48..7816a1b 100644
--- a/src/hashfunctioncasestring.h
+++ b/src/hashfunctioncasestring.h
@@ -20,7 +20,7 @@ public:
20 /** 20 /**
21 * Standard Deconstructor. 21 * Standard Deconstructor.
22 */ 22 */
23 ~HashFunctionCaseString(); 23 virtual ~HashFunctionCaseString();
24 unsigned long int hash( const void *id ); 24 unsigned long int hash( const void *id );
25 bool cmpIDs( const void *id1, const void *id2 ); 25 bool cmpIDs( const void *id1, const void *id2 );
26}; 26};
diff --git a/src/hashfunctionint.h b/src/hashfunctionint.h
index 57bce89..0fbc764 100644
--- a/src/hashfunctionint.h
+++ b/src/hashfunctionint.h
@@ -18,7 +18,7 @@ public:
18 /** 18 /**
19 * Standard Deconstructor. 19 * Standard Deconstructor.
20 */ 20 */
21 ~HashFunctionInt(); 21 virtual ~HashFunctionInt();
22 unsigned long int hash( const void *id ); 22 unsigned long int hash( const void *id );
23 bool cmpIDs( const void *id1, const void *id2 ); 23 bool cmpIDs( const void *id1, const void *id2 );
24}; 24};
diff --git a/src/hashfunctionstring.h b/src/hashfunctionstring.h
index 566f8ae..7d2a1a6 100644
--- a/src/hashfunctionstring.h
+++ b/src/hashfunctionstring.h
@@ -19,7 +19,7 @@ public:
19 /** 19 /**
20 * Standard Deconstructor. 20 * Standard Deconstructor.
21 */ 21 */
22 ~HashFunctionString(); 22 virtual ~HashFunctionString();
23 unsigned long int hash( const void *id ); 23 unsigned long int hash( const void *id );
24 bool cmpIDs( const void *id1, const void *id2 ); 24 bool cmpIDs( const void *id1, const void *id2 );
25}; 25};
diff --git a/src/hashtable.h b/src/hashtable.h
index b015107..170793f 100644
--- a/src/hashtable.h
+++ b/src/hashtable.h
@@ -69,7 +69,7 @@ public:
69 * Destroys the hashtable, cleaning up all internal storage, but not stored 69 * Destroys the hashtable, cleaning up all internal storage, but not stored
70 * elements. Also deletes the HashFunction passed in in the constructor. 70 * elements. Also deletes the HashFunction passed in in the constructor.
71 */ 71 */
72 ~HashTable(); 72 virtual ~HashTable();
73 73
74 /** Inserts an item into the hashtable. This function will trigger a 74 /** Inserts an item into the hashtable. This function will trigger a
75 * rehash if adding another item would force the table's load factor over 75 * rehash if adding another item would force the table's load factor over
diff --git a/src/http.h b/src/http.h
index 4ee4470..fc9e15a 100644
--- a/src/http.h
+++ b/src/http.h
@@ -55,7 +55,7 @@ public:
55 /** 55 /**
56 * Standard Deconstructor. 56 * Standard Deconstructor.
57 */ 57 */
58 ~Http(); 58 virtual ~Http();
59 59
60 /** 60 /**
61 * Perform all parsing needed to figure out what an HTTP client wants from 61 * Perform all parsing needed to figure out what an HTTP client wants from
diff --git a/src/linkedlist.h b/src/linkedlist.h
index c45cc9b..e430108 100644
--- a/src/linkedlist.h
+++ b/src/linkedlist.h
@@ -27,7 +27,7 @@ public:
27 /** 27 /**
28 * Delete all list data, but do not delete any of the contained elements. 28 * Delete all list data, but do not delete any of the contained elements.
29 */ 29 */
30 ~LinkedList(); 30 virtual ~LinkedList();
31 31
32 void *getAt( int nIndex ); 32 void *getAt( int nIndex );
33 void append( void *pData ); 33 void append( void *pData );
diff --git a/src/md5.h b/src/md5.h
index 810345e..7f77d83 100644
--- a/src/md5.h
+++ b/src/md5.h
@@ -21,7 +21,7 @@ public:
21 md5(); 21 md5();
22 22
23 /** Deconstruct */ 23 /** Deconstruct */
24 ~md5(); 24 virtual ~md5();
25 25
26 /** 26 /**
27 * Create a sum of a standard c string, null terminated. This is probably 27 * Create a sum of a standard c string, null terminated. This is probably
diff --git a/src/multilog.h b/src/multilog.h
index 7e4a357..692095a 100644
--- a/src/multilog.h
+++ b/src/multilog.h
@@ -42,7 +42,7 @@ public:
42 typedef struct LogEntry 42 typedef struct LogEntry
43 { 43 {
44 /** Safely delete a log entry. */ 44 /** Safely delete a log entry. */
45 ~LogEntry(); 45 virtual ~LogEntry();
46 time_t xTime; /**< The time the log entry was made. */ 46 time_t xTime; /**< The time the log entry was made. */
47 int nLevel; /**< The log-level of the entry. */ 47 int nLevel; /**< The log-level of the entry. */
48 char *lpFile; /**< The name of the file this entry came from. */ 48 char *lpFile; /**< The name of the file this entry came from. */
@@ -59,7 +59,7 @@ protected:
59 /** 59 /**
60 * Destroy the multilog. 60 * Destroy the multilog.
61 */ 61 */
62 ~MultiLog(); 62 virtual ~MultiLog();
63 63
64 /** 64 /**
65 * Append a new logentry to the log list, possibly pushing an old entry off. 65 * Append a new logentry to the log list, possibly pushing an old entry off.
diff --git a/src/multilogtext.h b/src/multilogtext.h
index 8994b68..197aef1 100644
--- a/src/multilogtext.h
+++ b/src/multilogtext.h
@@ -49,7 +49,7 @@ public:
49 /** 49 /**
50 * Destroy the object. 50 * Destroy the object.
51 */ 51 */
52 ~MultiLogText(); 52 virtual ~MultiLogText();
53 53
54 bool openLog(); 54 bool openLog();
55 bool append( MultiLog::LogEntry *pEntry ); 55 bool append( MultiLog::LogEntry *pEntry );
diff --git a/src/pqueue.h b/src/pqueue.h
index 1b45f75..8307d56 100644
--- a/src/pqueue.h
+++ b/src/pqueue.h
@@ -19,7 +19,7 @@ public:
19 /** 19 /**
20 * Cleanup all contained queues. 20 * Cleanup all contained queues.
21 */ 21 */
22 ~PQueue(); 22 virtual ~PQueue();
23 23
24 /** Add a new item to the queue at the specified priority. A lower 24 /** Add a new item to the queue at the specified priority. A lower
25 * number means a higher priority! 25 * number means a higher priority!
diff --git a/src/programchain.h b/src/programchain.h
index 333c91b..1752d2c 100644
--- a/src/programchain.h
+++ b/src/programchain.h
@@ -20,7 +20,7 @@ public:
20 /** 20 /**
21 * Destroy your chain. 21 * Destroy your chain.
22 */ 22 */
23 ~ProgramChain(); 23 virtual ~ProgramChain();
24 24
25 /** Adds a link to the end of the chain. 25 /** Adds a link to the end of the chain.
26 *@param pLink A pointer to the link to add to the chain. 26 *@param pLink A pointer to the link to add to the chain.
diff --git a/src/protocoltelnet.h b/src/protocoltelnet.h
index 4b2fb32..a6d2e49 100644
--- a/src/protocoltelnet.h
+++ b/src/protocoltelnet.h
@@ -14,7 +14,7 @@ class ProtocolTelnet : public Protocol
14{ 14{
15public: 15public:
16 ProtocolTelnet(); 16 ProtocolTelnet();
17 ~ProtocolTelnet(); 17 virtual ~ProtocolTelnet();
18 18
19 bool onNewData(); 19 bool onNewData();
20 bool onNewConnection(); 20 bool onNewConnection();
diff --git a/src/ringlist.h b/src/ringlist.h
index 1a4d3a9..bc069f3 100644
--- a/src/ringlist.h
+++ b/src/ringlist.h
@@ -28,7 +28,7 @@ public:
28 /** 28 /**
29 * Clean up the data structures, but not the contained elements. 29 * Clean up the data structures, but not the contained elements.
30 */ 30 */
31 ~RingList(); 31 virtual ~RingList();
32 32
33 /** 33 /**
34 * Get an element at the specified index. 34 * Get an element at the specified index.
diff --git a/src/serializerbinary.h b/src/serializerbinary.h
index 9d68d46..fe83ad5 100644
--- a/src/serializerbinary.h
+++ b/src/serializerbinary.h
@@ -9,7 +9,7 @@ class SerializerBinary : public Serializer
9public: 9public:
10 SerializerBinary(FILE *fhFile, bool bLoading); 10 SerializerBinary(FILE *fhFile, bool bLoading);
11 SerializerBinary(char *sFileName, bool bLoading); 11 SerializerBinary(char *sFileName, bool bLoading);
12 ~SerializerBinary(); 12 virtual ~SerializerBinary();
13 13
14 virtual void close(); 14 virtual void close();
15 15
diff --git a/src/serializerbzip2.h b/src/serializerbzip2.h
index 2d646f2..098c66e 100644
--- a/src/serializerbzip2.h
+++ b/src/serializerbzip2.h
@@ -9,7 +9,7 @@ class SerializerBZip2 : public Serializer
9public: 9public:
10 SerializerBZip2(FILE *fhFile, bool bLoading); 10 SerializerBZip2(FILE *fhFile, bool bLoading);
11 SerializerBZip2(char *sFileName, bool bLoading); 11 SerializerBZip2(char *sFileName, bool bLoading);
12 ~SerializerBZip2(); 12 virtual ~SerializerBZip2();
13 13
14 virtual void close(); 14 virtual void close();
15 15
diff --git a/src/serializertext.h b/src/serializertext.h
index c3fe202..9bead59 100644
--- a/src/serializertext.h
+++ b/src/serializertext.h
@@ -9,7 +9,7 @@ class SerializerText : public Serializer
9public: 9public:
10 SerializerText(FILE *fhFile, bool bLoading); 10 SerializerText(FILE *fhFile, bool bLoading);
11 SerializerText(char *sFileName, bool bLoading); 11 SerializerText(char *sFileName, bool bLoading);
12 ~SerializerText(); 12 virtual ~SerializerText();
13 13
14 virtual void close(); 14 virtual void close();
15 15
diff --git a/src/staticstring.h b/src/staticstring.h
index 1c98b3c..7ffa21f 100644
--- a/src/staticstring.h
+++ b/src/staticstring.h
@@ -18,7 +18,7 @@ public:
18 StaticString( const char *lpNewStr, int nNewLen=-1 ); 18 StaticString( const char *lpNewStr, int nNewLen=-1 );
19 StaticString( StaticString &xSrcStr, int nNewLen=-1 ); 19 StaticString( StaticString &xSrcStr, int nNewLen=-1 );
20 StaticString( int nLength ); 20 StaticString( int nLength );
21 ~StaticString(); 21 virtual ~StaticString();
22 22
23 char *getString(); 23 char *getString();
24 int getLength(); 24 int getLength();
diff --git a/src/test/xmlwritetest/xmlwritetest.cpp b/src/test/xmlwritetest/xmlwritetest.cpp
index 2986c35..fc93510 100644
--- a/src/test/xmlwritetest/xmlwritetest.cpp
+++ b/src/test/xmlwritetest/xmlwritetest.cpp
@@ -1,5 +1,6 @@
1#include "xmlfilewriter.h" 1#include "xmlfilewriter.h"
2#include "xmlstringwriter.h" 2#include "xmlstringwriter.h"
3#include "xmlstringreader.h"
3 4
4void fillItIn( XmlWriter &w ) 5void fillItIn( XmlWriter &w )
5{ 6{
@@ -28,6 +29,12 @@ void fillItIn( XmlWriter &w )
28int main() 29int main()
29{ 30{
30 printf("Testing XmlWriter...\n"); 31 printf("Testing XmlWriter...\n");
32
33 XmlStringReader *xsr = new XmlStringReader("<stuff/>");
34
35 printf("%08X\n%08X\n%08X\n", xsr, (XmlReader *)xsr, (XmlDocument *)xsr );
36
37 delete (XmlDocument *)xsr;
31 //XmlFileWriter wf("test.xml", "\t"); 38 //XmlFileWriter wf("test.xml", "\t");
32 39
33 //fillItIn( wf ); 40 //fillItIn( wf );
diff --git a/src/tokenstring.h b/src/tokenstring.h
index 37ce6f5..42f7309 100644
--- a/src/tokenstring.h
+++ b/src/tokenstring.h
@@ -27,7 +27,7 @@ public:
27 *@author Mike Buland 27 *@author Mike Buland
28 */ 28 */
29 TokenString( const char *lpNewTokenString=NULL ); 29 TokenString( const char *lpNewTokenString=NULL );
30 ~TokenString(); 30 virtual ~TokenString();
31 31
32 /** Performs a tokenizing parse on the given command line, setting it as 32 /** Performs a tokenizing parse on the given command line, setting it as
33 * the internal command line for all future tokenizing (excluding 33 * the internal command line for all future tokenizing (excluding
diff --git a/src/xmldocument.h b/src/xmldocument.h
index 1a8eb52..6671c41 100644
--- a/src/xmldocument.h
+++ b/src/xmldocument.h
@@ -27,7 +27,7 @@ public:
27 /** 27 /**
28 * Destroy all contained nodes. 28 * Destroy all contained nodes.
29 */ 29 */
30 ~XmlDocument(); 30 virtual ~XmlDocument();
31 31
32 /** 32 /**
33 * Add a new node to the document. The new node is appended to the end of 33 * Add a new node to the document. The new node is appended to the end of
diff --git a/src/xmlfilereader.h b/src/xmlfilereader.h
index 24a6e28..e3e02c2 100644
--- a/src/xmlfilereader.h
+++ b/src/xmlfilereader.h
@@ -35,7 +35,7 @@ public:
35 /** 35 /**
36 * Destroy the reader and cleanup. 36 * Destroy the reader and cleanup.
37 */ 37 */
38 ~XmlFileReader(); 38 virtual ~XmlFileReader();
39 39
40private: 40private:
41 char getChar( int nIndex = 0 ); 41 char getChar( int nIndex = 0 );
diff --git a/src/xmlfilewriter.h b/src/xmlfilewriter.h
index 97b3e00..231bb0d 100644
--- a/src/xmlfilewriter.h
+++ b/src/xmlfilewriter.h
@@ -33,7 +33,7 @@ public:
33 /** 33 /**
34 * Destroy the writer. 34 * Destroy the writer.
35 */ 35 */
36 ~XmlFileWriter(); 36 virtual ~XmlFileWriter();
37 37
38private: 38private:
39 void writeString( const char *sString ); 39 void writeString( const char *sString );
diff --git a/src/xmlnode.h b/src/xmlnode.h
index 2b01226..02ab41d 100644
--- a/src/xmlnode.h
+++ b/src/xmlnode.h
@@ -33,7 +33,7 @@ public:
33 /** 33 /**
34 * Delete the node and cleanup all memory. 34 * Delete the node and cleanup all memory.
35 */ 35 */
36 ~XmlNode(); 36 virtual ~XmlNode();
37 37
38 /** 38 /**
39 * Change the name of the node. 39 * Change the name of the node.
diff --git a/src/xmlreader.h b/src/xmlreader.h
index a9881cb..c8f7202 100644
--- a/src/xmlreader.h
+++ b/src/xmlreader.h
@@ -37,7 +37,7 @@ public:
37 /** 37 /**
38 * Destroy this XmlReader. 38 * Destroy this XmlReader.
39 */ 39 */
40 ~XmlReader(); 40 virtual ~XmlReader();
41 41
42 /** 42 /**
43 * Build a document based on some kind of input. This is called 43 * Build a document based on some kind of input. This is called
diff --git a/src/xmlstringreader.h b/src/xmlstringreader.h
index 19df427..1239ef4 100644
--- a/src/xmlstringreader.h
+++ b/src/xmlstringreader.h
@@ -36,7 +36,7 @@ public:
36 /** 36 /**
37 * Destroy this string reader. 37 * Destroy this string reader.
38 */ 38 */
39 ~XmlStringReader(); 39 virtual ~XmlStringReader();
40 40
41private: 41private:
42 char getChar( int nIndex = 0 ); 42 char getChar( int nIndex = 0 );
diff --git a/src/xmlstringwriter.h b/src/xmlstringwriter.h
index 530db3e..0d567b9 100644
--- a/src/xmlstringwriter.h
+++ b/src/xmlstringwriter.h
@@ -32,7 +32,7 @@ public:
32 /** 32 /**
33 * Destroy the string writer and the internal string. 33 * Destroy the string writer and the internal string.
34 */ 34 */
35 ~XmlStringWriter(); 35 virtual ~XmlStringWriter();
36 36
37 /** 37 /**
38 * Get the string that was built. This is only valid after the document has 38 * Get the string that was built. This is only valid after the document has
diff --git a/src/xmlwriter.h b/src/xmlwriter.h
index 5bc3f0a..c48e810 100644
--- a/src/xmlwriter.h
+++ b/src/xmlwriter.h
@@ -36,7 +36,7 @@ public:
36 /** 36 /**
37 * Destroy the writer. 37 * Destroy the writer.
38 */ 38 */
39 ~XmlWriter(); 39 virtual ~XmlWriter();
40 40
41 /** 41 /**
42 * This override of the parent class closeNode function calls the parent 42 * This override of the parent class closeNode function calls the parent