From a107dd8e4688bf78b5d3f8baa7e3340d9d3371bb Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sat, 1 May 2010 12:48:03 +0200 Subject: [PATCH] Fix pxml.cpp compile --- src/pxml.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pxml.cpp b/src/pxml.cpp index bee2158..3ee9a55 100644 --- a/src/pxml.cpp +++ b/src/pxml.cpp @@ -1,6 +1,8 @@ #include "pxml.h" #include "tinyxml/tinyxml.h" +#include + using namespace std; PXml::PXml(string file) { @@ -8,7 +10,7 @@ PXml::PXml(string file) { error = title = description = authorName = authorWebsite = category = exec = icon = ""; version = osVersion = (SoftwareVersion){0,0,0,0}; - TiXmlDocument doc(file); + TiXmlDocument doc(file.c_str()); if (doc.LoadFile()) { TiXmlHandle hDoc(&doc); TiXmlElement* pElem;