diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-14 10:34:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-14 10:34:13 +0000 |
commit | 8ff12fb4e2a9062117dc56b9cd84922bfe900eb8 (patch) | |
tree | a09cad6e3a300c8a3dd4cecd93a35bf2598e05f5 /sc | |
parent | c88a779c43c98db1f93a28fe667e29e94b8918f5 (diff) |
Can't use RTL_CONSTASCII_USTRINGPARAM on pointers
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 4dd1edad9364..00a9f760b817 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -381,14 +381,14 @@ void Test::testDataPilot() // Insert field names in row 0. for (sal_uInt32 i = 0; i < nFieldCount; ++i) - m_pDoc->SetString(0, static_cast<SCCOL>(i), 0, OUString(RTL_CONSTASCII_USTRINGPARAM(aFields[i].pName))); + m_pDoc->SetString(0, static_cast<SCCOL>(i), 0, OUString::createFromAscii(aFields[i].pName)); // Insert data into row 1 and downward. for (sal_uInt32 i = 0; i < nDataCount; ++i) { SCROW nRow = static_cast<SCROW>(i) + 1; - m_pDoc->SetString(0, nRow, 0, OUString(RTL_CONSTASCII_USTRINGPARAM(aData[i].pName))); - m_pDoc->SetString(1, nRow, 0, OUString(RTL_CONSTASCII_USTRINGPARAM(aData[i].pGroup))); + m_pDoc->SetString(0, nRow, 0, OUString::createFromAscii(aData[i].pName)); + m_pDoc->SetString(1, nRow, 0, OUString::createFromAscii(aData[i].pGroup)); m_pDoc->SetValue(2, nRow, 0, aData[i].nScore); } @@ -420,7 +420,7 @@ void Test::testDataPilot() // Set the dimension information. for (sal_uInt32 i = 0; i < nFieldCount; ++i) { - OUString aDimName(RTL_CONSTASCII_USTRINGPARAM(aFields[i].pName)); + OUString aDimName(OUString::createFromAscii(aFields[i].pName)); ScDPSaveDimension* pDim = aSaveData.GetDimensionByName(aDimName); pDim->SetOrientation(aFields[i].eOrient); if (aFields[i].eOrient == sheet::DataPilotFieldOrientation_DATA) |