summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-31 13:39:16 +0200
committerNoel Grandin <noel@peralex.com>2015-08-31 13:39:16 +0200
commit489dbb311dc8645765885a432cc8bf42543a2867 (patch)
tree15ec95f679ebfffd15b1e1856e8ac79d555bcf34 /sc/qa
parent4a5d980ff20ead85e63daf1561050fa7c2830a8f (diff)
fix dubious usage of [0] instead of proper dereferencing
introduced in commit 4aed1c6f384ab372b1c03f607445f92f0181f822 "replace boost::ptr_vector with std::vector<std::unique_ptr>" Change-Id: Id16921f212128d34835a4c0b9facd18cb264da62
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/helper/shared_test_impl.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/qa/unit/helper/shared_test_impl.hxx b/sc/qa/unit/helper/shared_test_impl.hxx
index 956fc9f9e951..7a92c4ec0a36 100644
--- a/sc/qa/unit/helper/shared_test_impl.hxx
+++ b/sc/qa/unit/helper/shared_test_impl.hxx
@@ -103,10 +103,10 @@ void testColorScale2Entry_Impl(ScDocument& rDoc)
CPPUNIT_ASSERT_EQUAL(size_t(2), pColFormat->size());
ScColorScaleEntries::const_iterator format_itr = pColFormat->begin();
- CPPUNIT_ASSERT_EQUAL(aData2Entry[i].eLowerType, format_itr[0]->GetType());
+ CPPUNIT_ASSERT_EQUAL(aData2Entry[i].eLowerType, (*format_itr)->GetType());
++format_itr;
CPPUNIT_ASSERT(format_itr != pColFormat->end());
- CPPUNIT_ASSERT_EQUAL(aData2Entry[i].eUpperType, format_itr[0]->GetType());
+ CPPUNIT_ASSERT_EQUAL(aData2Entry[i].eUpperType, (*format_itr)->GetType());
}
}
@@ -142,13 +142,13 @@ void testColorScale3Entry_Impl(ScDocument& rDoc)
CPPUNIT_ASSERT_EQUAL(size_t(3), pColFormat->size());
ScColorScaleEntries::const_iterator format_itr = pColFormat->begin();
- CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eLowerType, format_itr[0]->GetType());
+ CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eLowerType, (*format_itr)->GetType());
++format_itr;
CPPUNIT_ASSERT(format_itr != pColFormat->end());
- CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eMiddleType, format_itr[0]->GetType());
+ CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eMiddleType, (*format_itr)->GetType());
++format_itr;
CPPUNIT_ASSERT(format_itr != pColFormat->end());
- CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eUpperType, format_itr[0]->GetType());
+ CPPUNIT_ASSERT_EQUAL(aData3Entry[i].eUpperType, (*format_itr)->GetType());
}
}