[Libreoffice-commits] .: sc/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jan 11 15:17:43 PST 2013


 sc/qa/unit/ucalc.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c34ca5c2a638476b76ae448b16a13358fd2be926
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Jan 12 00:16:32 2013 +0100

    make this compile with a not so recent code base
    
    Change-Id: I9b3f8ca9c5af326735ff9c95359e6a0917d6898b

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 13c5123..a12ce89 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -700,7 +700,7 @@ void testFuncIFERROR(ScDocument* pDoc)
 
     // formulas and results
     struct {
-        const char* pFormula; OUString aResult;
+        const char* pFormula; const char* pResult;
     } aChecks[] = {
         { "=IFERROR(A1;9)",                         "1" },
      // { "{=IFERROR(3*A1:A2;2002)}",               "3" },
@@ -731,7 +731,7 @@ void testFuncIFERROR(ScDocument* pDoc)
         SCROW nRow = 20 + i;
         pDoc->GetString(0, nRow, 0, aResult);
         CPPUNIT_ASSERT_EQUAL_MESSAGE(
-            aChecks[i].pFormula, aChecks[i].aResult, aResult);
+            aChecks[i].pFormula, OUString::createFromAscii( aChecks[i].pResult), aResult);
     }
 }
 


More information about the Libreoffice-commits mailing list