summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-05-15 13:37:46 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-05-20 20:13:07 -0400
commitb7c84a69bf989bef8de30cad36d2b5d17190d302 (patch)
tree05997d28d9367cf70d440d7c9e9c3998a09e3306
parentbad98d1b26f76192dcf7f935060a9928b8442585 (diff)
Slightly shorter way of getting the element value.
Change-Id: I9f56c7a54405a805cb843321bdab660a3ab22fd6
-rw-r--r--sc/source/core/data/column2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 037a02ce3b29..c0e0bfff37f9 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1872,9 +1872,7 @@ void ScColumn::StartListening( SvtListener& rLst, SCROW nRow )
case sc::element_type_broadcaster:
{
// Broadcaster already exists here.
- sc::custom_broadcaster_block::iterator itData = sc::custom_broadcaster_block::begin(*it->data);
- std::advance(itData, nElemPos);
- SvtBroadcaster* pBC = *itData;
+ SvtBroadcaster* pBC = sc::custom_broadcaster_block::at(*it->data, nElemPos);
rLst.StartListening(*pBC);
}
break;