make the tolerance file optional

Change-Id: I172cbd54a231a4f9b621fb85c7f349839286143a
This commit is contained in:
Markus Mohrhard
2014-04-03 00:47:38 +02:00
parent e46372fc5c
commit d00e9e7fe2

View File

@@ -108,9 +108,12 @@ XMLDiff::XMLDiff( const char* pFileName, const char* pContent, int size, const c
xmlFile1 = xmlParseFile(pFileName);
xmlFile2 = xmlParseMemory(pContent, size);
xmlDocPtr xmlToleranceFile = xmlParseFile(pToleranceFile);
loadToleranceFile(xmlToleranceFile);
xmlFreeDoc(xmlToleranceFile);
if(pToleranceFile)
{
xmlDocPtr xmlToleranceFile = xmlParseFile(pToleranceFile);
loadToleranceFile(xmlToleranceFile);
xmlFreeDoc(xmlToleranceFile);
}
}
XMLDiff::~XMLDiff()