From 1f02e9b5a71836aa750d8e6676d2e876cad5e7a2 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Sun, 19 Feb 2017 12:01:56 +0900 Subject: starmath: Convert SmParseError to scoped enum Change-Id: Ia2663a768c424ea6f03bd0933a3c2fd608c239d8 Reviewed-on: https://gerrit.libreoffice.org/34422 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/qa/cppunit/test_starmath.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'starmath/qa/cppunit') diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 7a5688a1463d..09f9abd637fa 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -150,18 +150,18 @@ void Test::editFailure() const SmErrorDesc *pErrorDesc = m_xDocShRef->GetParser().NextError(); - CPPUNIT_ASSERT_MESSAGE("Should be a PE_COLOR_EXPECTED", - pErrorDesc && pErrorDesc->m_eType == PE_COLOR_EXPECTED); + CPPUNIT_ASSERT_MESSAGE("Should be a SmParseError::ColorExpected", + pErrorDesc && pErrorDesc->m_eType == SmParseError::ColorExpected); pErrorDesc = m_xDocShRef->GetParser().PrevError(); - CPPUNIT_ASSERT_MESSAGE("Should be a PE_UNEXPECTED_CHAR", - pErrorDesc && pErrorDesc->m_eType == PE_UNEXPECTED_CHAR); + CPPUNIT_ASSERT_MESSAGE("Should be a SmParseError::UnexpectedChar", + pErrorDesc && pErrorDesc->m_eType == SmParseError::UnexpectedChar); pErrorDesc = m_xDocShRef->GetParser().PrevError(); - CPPUNIT_ASSERT_MESSAGE("Should be a PE_RGROUP_EXPECTED", - pErrorDesc && pErrorDesc->m_eType == PE_RGROUP_EXPECTED); + CPPUNIT_ASSERT_MESSAGE("Should be a SmParseError::RgroupExpected", + pErrorDesc && pErrorDesc->m_eType == SmParseError::RgroupExpected); const SmErrorDesc *pLastErrorDesc = m_xDocShRef->GetParser().PrevError(); -- cgit