diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-13 16:13:46 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:13:05 -0400 |
commit | 410154e76c229a862b43a9eee6ffc44b845f6ffd (patch) | |
tree | 4388480966555309163b17d51d5d0a4c743d68eb /sc/inc/refdata.hxx | |
parent | 180c2fe7432f444fcf8f933c413c63c56dd5c27a (diff) |
Collect all empty broadcasters and remove them in one go later.
This is to avoid repeated calls to set_empty() on the broadcaster array
which causes array reallocation on each call. Instead, we can store the
segments of broadcasters to be deleted later, and call set_empty() on
those segments to reduce the number of calls to set_empty().
The meat of this is not implemented yet, as EndListeningContext is still
empty.
Change-Id: I914bc2881acee3902c4fec0f6c21aaf4d2489df8
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index a19f1df5e51b..6d6fe79bdfb0 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -91,6 +91,8 @@ struct SC_DLLPUBLIC ScSingleRefData // Single reference (one address) int /// In external references nTab is -1 inline bool ValidExternal() const; + ScAddress toAbs( const ScAddress& rPos ) const; + void SmartRelAbs( const ScAddress& rPos ); void CalcRelFromAbs( const ScAddress& rPos ); void CalcAbsIfRel( const ScAddress& rPos ); |