[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Wed May 15 10:36:12 PDT 2013


 sc/source/core/data/column2.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 281fdeae97e6997bbe293e1a4dc4d6a496664fb8
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Wed May 15 13:37:46 2013 -0400

    Slightly shorter way of getting the element value.
    
    Change-Id: I9f56c7a54405a805cb843321bdab660a3ab22fd6

diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 400488b..f6eb29a 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;


More information about the Libreoffice-commits mailing list