summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-0.8.7-PATCHES/patch-04-libdvisvgm-virtual
blob: 2a24096e3118351bb598c053c30530cb9e61133c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	Add virtual destructors to avoid compiler warning.

	May actually be required, or just be a warning?

diff -ur dvisvgm-0.8.7.orig/src/CmdLineParserBase.h dvisvgm-0.8.7/src/CmdLineParserBase.h
--- dvisvgm-0.8.7.orig/src/CmdLineParserBase.h	2009-11-06 22:17:58.000000000 +0100
+++ dvisvgm-0.8.7/src/CmdLineParserBase.h	2009-11-13 18:55:12.000000000 +0100
@@ -72,6 +72,7 @@
 	protected:
 		CmdLineParserBase () : _error(false) {}
 		CmdLineParserBase (const CmdLineParserBase &cmd) {}
+		virtual ~CmdLineParserBase () {}
 		virtual void init ();
 		virtual void error (const Option &opt, bool longopt, const char *msg) const;
 		bool checkArgPrefix (InputReader &ir, const Option &opt, bool longopt) const;
diff -ur dvisvgm-0.8.7.orig/src/CommandLine.h dvisvgm-0.8.7/src/CommandLine.h
--- dvisvgm-0.8.7.orig/src/CommandLine.h	2009-11-06 22:22:55.000000000 +0100
+++ dvisvgm-0.8.7/src/CommandLine.h	2009-11-13 18:55:09.000000000 +0100
@@ -14,6 +14,7 @@
    public:
       CommandLine () {init();}
       CommandLine (int argc, char **argv, bool printErrors) {parse(argc, argv, printErrors);}
+      virtual ~CommandLine () {}
       void help () const;
       void status () const;
       int numOptions () const {return 22;}