Kaydet (Commit) b6a41916 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Use SAL_N_ELEMENTS

Change-Id: I3d26823a93fd0925ef5e71affd941cd51219ab9e
üst 5771bde2
......@@ -2277,7 +2277,7 @@ void ScExportTest::testSwappedOutImageExport()
officecfg::Office::Common::Cache::GraphicManager::TotalCacheSize::set(sal_Int32(1), xBatch);
xBatch->commit();
for( size_t nFilter = 0; nFilter < 4; ++nFilter )
for( size_t nFilter = 0; nFilter < SAL_N_ELEMENTS(aFilterNames); ++nFilter )
{
// Check whether the export code swaps in the image which was swapped out before.
ScDocShellRef xDocSh = loadDoc("document_with_two_images.", ODS);
......
......@@ -509,7 +509,7 @@ void SdExportTest::testSwappedOutImageExport()
officecfg::Office::Common::Cache::GraphicManager::TotalCacheSize::set(sal_Int32(1), xBatch);
xBatch->commit();
for( size_t nExportFormat = 0; nExportFormat < 3; ++nExportFormat )
for( size_t nExportFormat = 0; nExportFormat < SAL_N_ELEMENTS(vFormats); ++nExportFormat )
{
// Load the original file with one image
::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/odp/document_with_two_images.odp"), ODP);
......
......@@ -40,7 +40,7 @@ void Test::testSwappedOutImageExport()
"Office Open XML Text",
};
for( size_t nFilter = 0; nFilter < 4; ++nFilter )
for( size_t nFilter = 0; nFilter < SAL_N_ELEMENTS(aFilterNames); ++nFilter )
{
// Check whether the export code swaps in the image which was swapped out before by auto mechanism
......
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