diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-18 00:22:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-18 23:22:43 -0400 |
commit | 1a590708f5ed69d2387e13334f347160e23c63f6 (patch) | |
tree | 16f01a3585fa93ea9eab2fb1aa1f3549bf1da198 /sc/inc/scmatrix.hxx | |
parent | 7195a5b87ca6ac22246b80cf8e907eb22f8e0f12 (diff) |
Faster way to add two result matrices.
Change-Id: I347aec7de10a943d7f91c468cd6e393f980e53b6
Diffstat (limited to 'sc/inc/scmatrix.hxx')
-rw-r--r-- | sc/inc/scmatrix.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<Pos, PosDeleter> PosRef; - typedef boost::interprocess::unique_ptr<ConstPos, PosDeleter> ConstPosRef; + typedef boost::interprocess::unique_ptr<ConstPos, ConstPosDeleter> 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<double>& rArray ) const; void MergeDoubleArray( std::vector<double>& rArray, Op eOp ) const; + ScMatrix& operator+= ( const ScMatrix& r ); + #if DEBUG_MATRIX void Dump() const; #endif |