sc/qa/unit/ucalc.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 87aec3489b98a98996df6096e3468a2b613311f2 Author: Kohei Yoshida <[email protected]> Date: Tue Mar 19 18:07:44 2013 -0400 Remove warnings by using string stream instead of printf. Change-Id: I51650e9fcfd7f78dbd7d74ff87248ee057672bf7 diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index ec2711f..b8f8dc7 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -6268,9 +6268,10 @@ void Test::testFormulaGrouping() if( !!pCur->GetCellGroup().get() ^ aGroupTests[i].bGroup[j] ) { - printf("expected group test %d at row %d to be %d but is %d\n", - i, j, aGroupTests[i].bGroup[j], !!pCur->GetCellGroup().get()); - CPPUNIT_ASSERT_MESSAGE("Failed", false); + std::ostringstream os; + os << "expected group test " << i << " at row " << j << " to be " + << aGroupTests[i].bGroup[j] << " but is " << !!pCur->GetCellGroup().get(); + CPPUNIT_ASSERT_MESSAGE(os.str().c_str(), false); } } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
