diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-14 16:57:52 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-14 17:00:40 -0400 |
commit | b09426b83c12b0cd27cd909602251cb076ffa4ba (patch) | |
tree | 1accd4e5214b123084c0bb9e2a3dd639b52232bf /include | |
parent | 2da75ceaca3907694b4021d3d63a63375ce37ac6 (diff) |
fdo#76294: Properly intern string literals in formula on xls import.
Change-Id: Ib3a442cbb68c23294762561f2911101a087a795e
Diffstat (limited to 'include')
-rw-r--r-- | include/formula/tokenarray.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 7370e43e373a..fba33e86b3d8 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -27,6 +27,12 @@ #include <boost/unordered_set.hpp> +namespace svl { + +class SharedString; + +} + namespace formula { @@ -212,7 +218,7 @@ public: virtual void CheckToken( const FormulaToken& t ); FormulaToken* AddToken( const FormulaToken& ); - FormulaToken* AddString( const OUString& rStr ); + FormulaToken* AddString( const svl::SharedString& rStr ); FormulaToken* AddDouble( double fVal ); FormulaToken* AddExternal( const sal_Unicode* pStr ); /** Xcl import may play dirty tricks with OpCode!=ocExternal. |