From 410154e76c229a862b43a9eee6ffc44b845f6ffd Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 13 May 2013 16:13:46 -0400 Subject: 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 --- sc/inc/refdata.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc/inc/refdata.hxx') 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 ); -- cgit