make the tolerance file optional
Change-Id: I172cbd54a231a4f9b621fb85c7f349839286143a
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user