From 2eec59a47ec36e5e4f921ca91284942b4d7d521b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 18 Jan 2015 21:42:49 +0100 Subject: Fixed bugs in definition of Project, added reference to Project to ParserContext --- test/plugins/xml/XmlParserTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/plugins/xml') diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index 2046940..6ac2fc1 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -38,7 +38,7 @@ TEST(XmlParser, mismatchedTagException) bool hadException = false; try { - p.parse("\n", ctx); + p.parse("\n", ctx.context); } catch (LoggableException ex) { ASSERT_EQ(2, ex.loc.line); @@ -81,7 +81,7 @@ TEST(XmlParser, namespaces) ScopedLogger sl(logger, "test.oxd", SourceLocation{}, CharReader::contextCallback, &reader); try { - p.parse(TEST_DATA, ctx); + p.parse(TEST_DATA, ctx.context); } catch (LoggableException ex) { logger.log(ex); -- cgit v1.2.3