Kaydet (Commit) e4972543 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fix build.

Change-Id: I91599766e607b26d2c71006c9543a2bd952e228a
üst 62ddb5bb
......@@ -2265,7 +2265,7 @@ void ScExportTest::testFunctionsExcel2010ODS()
void ScExportTest::testSwappedOutImageExport()
{
const OUString aFilterNames[] = {
const char* aFilterNames[] = {
"calc8",
"MS Excel 97",
"Calc Office Open XML",
......@@ -2282,8 +2282,7 @@ void ScExportTest::testSwappedOutImageExport()
// Check whether the export code swaps in the image which was swapped out before.
ScDocShellRef xDocSh = loadDoc("document_with_two_images.", ODS);
const OString sFailedMessage = OString("Failed on filter: ")
+ OUStringToOString(aFilterNames[nFilter], RTL_TEXTENCODING_ASCII_US);
const OString sFailedMessage = OString("Failed on filter: ") + aFilterNames[nFilter];
CPPUNIT_ASSERT_MESSAGE(sFailedMessage.getStr(), xDocSh.Is());
// Export the document and import again for a check
......
......@@ -33,7 +33,7 @@ public:
void Test::testSwappedOutImageExport()
{
const OUString aFilterNames[] = {
const char* aFilterNames[] = {
"writer8",
"Rich Text Format",
"MS Word 97",
......@@ -53,14 +53,11 @@ void Test::testSwappedOutImageExport()
mxComponent->dispose();
mxComponent = loadFromDesktop(getURLFromSrc("/sw/qa/extras/globalfilter/data/document_with_two_images.odt"), "com.sun.star.text.TextDocument");
const OString sFailedMessage = OString("Failed on filter: ")
+ OUStringToOString(aFilterNames[nFilter], RTL_TEXTENCODING_ASCII_US);
// Export the document and import again for a check
uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
utl::MediaDescriptor aMediaDescriptor;
aMediaDescriptor["FilterName"] <<= aFilterNames[nFilter];
aMediaDescriptor["FilterName"] <<= OUString::createFromAscii(aFilterNames[nFilter]);
utl::TempFile aTempFile;
aTempFile.EnableKillingFile();
......@@ -72,6 +69,8 @@ void Test::testSwappedOutImageExport()
// Check whether graphic exported well after it was swapped out
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
const OString sFailedMessage = OString("Failed on filter: ") + aFilterNames[nFilter];
CPPUNIT_ASSERT_EQUAL_MESSAGE(sFailedMessage.getStr(), static_cast<sal_Int32>(2), xDraws->getCount());
// First image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment