From f5e8be8bb1681f0e2494337bc769b33332ef3fff Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Oct 2013 11:38:36 +0100 Subject: Remove unused SimpleTokenizer_Impl::nLine/nCol ...which are never read; remove thereby unused parameters from functions. Change-Id: I644d2dc1b2d13ae2f932d04243521eef97e67e3e --- comphelper/qa/unit/syntaxhighlighttest.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'comphelper/qa/unit/syntaxhighlighttest.cxx') diff --git a/comphelper/qa/unit/syntaxhighlighttest.cxx b/comphelper/qa/unit/syntaxhighlighttest.cxx index 294db3e76fc0..af834a638de0 100644 --- a/comphelper/qa/unit/syntaxhighlighttest.cxx +++ b/comphelper/qa/unit/syntaxhighlighttest.cxx @@ -42,7 +42,7 @@ void SyntaxHighlightTest::testBasicString() { h.initialize(HIGHLIGHT_BASIC); OUString s("\"foo\""); std::vector ps; - h.getHighlightPortions(0, s, ps); + h.getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast::size_type>(1), ps.size()); CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); @@ -55,7 +55,7 @@ void SyntaxHighlightTest::testBasicComment() { h.initialize(HIGHLIGHT_BASIC); OUString s("' foo"); std::vector ps; - h.getHighlightPortions(0, s, ps); + h.getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast::size_type>(1), ps.size()); CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); @@ -68,7 +68,7 @@ void SyntaxHighlightTest::testBasicCommentNewline() { h.initialize(HIGHLIGHT_BASIC); OUString s("' foo\n"); std::vector ps; - h.getHighlightPortions(0, s, ps); + h.getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast::size_type>(2), ps.size()); CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); @@ -84,7 +84,7 @@ void SyntaxHighlightTest::testBasicEmptyComment() { h.initialize(HIGHLIGHT_BASIC); OUString s("'"); std::vector ps; - h.getHighlightPortions(0, s, ps); + h.getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast::size_type>(1), ps.size()); CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); @@ -97,7 +97,7 @@ void SyntaxHighlightTest::testBasicEmptyCommentNewline() { h.initialize(HIGHLIGHT_BASIC); OUString s("'\n"); std::vector ps; - h.getHighlightPortions(0, s, ps); + h.getHighlightPortions(s, ps); CPPUNIT_ASSERT_EQUAL( static_cast::size_type>(2), ps.size()); CPPUNIT_ASSERT_EQUAL(0, ps[0].nBegin); @@ -116,7 +116,7 @@ void SyntaxHighlightTest::testBasic() aHighlighter.initialize( HIGHLIGHT_BASIC ); std::vector aPortions; - aHighlighter.getHighlightPortions( 0, aBasicString, aPortions ); + aHighlighter.getHighlightPortions( aBasicString, aPortions ); sal_Int32 prevEnd = 0; for(std::vector::const_iterator itr = -- cgit