diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-14 23:15:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-15 00:15:06 -0400 |
commit | 88955714d345d8584e86ae34bf5f5d1f3f4af9f7 (patch) | |
tree | 0ff18e33c5cf692327f5187331b47fecce53b2a0 /sc/inc/mtvcellfunc.hxx | |
parent | fdo#71491: Write test for this. (diff) | |
download | core-88955714d345d8584e86ae34bf5f5d1f3f4af9f7.tar.gz core-88955714d345d8584e86ae34bf5f5d1f3f4af9f7.zip |
fdo#71491: Adjust reference during undo of drag-n-drop of cell range.
Also with this commit, the signature of SvtListener::Notify() changes,
by dropping the first argument which nobody uses. This change was necessary
in order to call it directly without needing to pass any broadcaster instance.
Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
Diffstat (limited to 'sc/inc/mtvcellfunc.hxx')
-rw-r--r-- | sc/inc/mtvcellfunc.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/mtvcellfunc.hxx b/sc/inc/mtvcellfunc.hxx index d5e79218a350..092dcf7a54c1 100644 --- a/sc/inc/mtvcellfunc.hxx +++ b/sc/inc/mtvcellfunc.hxx @@ -187,6 +187,16 @@ ProcessNote( CellNoteStoreType, cellnote_block, _FuncElem, FuncElseNoOp<size_t> >(it, rStore, nRow1, nRow2, rFuncElem, aElse); } +template<typename _FuncElem> +typename BroadcasterStoreType::iterator +ProcessBroadcaster( + const BroadcasterStoreType::iterator& it, BroadcasterStoreType& rStore, SCROW nRow1, SCROW nRow2, _FuncElem& rFuncElem) +{ + FuncElseNoOp<size_t> aElse; + return ProcessElements1< + BroadcasterStoreType, broadcaster_block, _FuncElem, FuncElseNoOp<size_t> >(it, rStore, nRow1, nRow2, rFuncElem, aElse); +} + } #endif |