summaryrefslogtreecommitdiff
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
index b43b419143..49e870c369 100644
--- a/utils/themeeditor/main.cpp
+++ b/utils/themeeditor/main.cpp
@@ -19,13 +19,10 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22namespace wps 22extern "C"
23{ 23{
24 extern "C"
25 {
26#include "skin_parser.h" 24#include "skin_parser.h"
27#include "skin_debug.h" 25#include "skin_debug.h"
28 }
29} 26}
30 27
31#include <cstdlib> 28#include <cstdlib>
@@ -39,13 +36,14 @@ namespace wps
39int main(int argc, char* argv[]) 36int main(int argc, char* argv[])
40{ 37{
41 38
42 char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)<param2|param3>"; 39 char doc[] = "%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>";
43 40
44 struct wps::skin_element* test = wps::skin_parse(doc); 41 struct skin_element* test = skin_parse(doc);
45 42
46 wps::skin_debug_tree(test); 43 skin_debug_tree(test);
44
45 skin_free_tree(test);
47 46
48 wps::skin_free_tree(test);
49 47
50 QApplication app(argc, argv); 48 QApplication app(argc, argv);
51 49