[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/qa
Kohei Yoshida
kohei.yoshida at gmail.com
Tue Mar 19 15:08:24 PDT 2013
sc/qa/unit/ucalc.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 87aec3489b98a98996df6096e3468a2b613311f2
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
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);
}
}
}
More information about the Libreoffice-commits
mailing list