From 1a590708f5ed69d2387e13334f347160e23c63f6 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 18 Oct 2013 00:22:11 -0400 Subject: Faster way to add two result matrices. Change-Id: I347aec7de10a943d7f91c468cd6e393f980e53b6 --- sc/inc/scmatrix.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc/inc/scmatrix.hxx') diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index 8317b85a1184..5e9800ea275d 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -167,7 +167,7 @@ public: }; typedef boost::interprocess::unique_ptr PosRef; - typedef boost::interprocess::unique_ptr ConstPosRef; + typedef boost::interprocess::unique_ptr ConstPosRef; /// The maximum number of elements a matrix may have at runtime. inline static size_t GetElementsMax() @@ -407,6 +407,8 @@ public: void GetDoubleArray( std::vector& rArray ) const; void MergeDoubleArray( std::vector& rArray, Op eOp ) const; + ScMatrix& operator+= ( const ScMatrix& r ); + #if DEBUG_MATRIX void Dump() const; #endif -- cgit