diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-10 20:24:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-11 12:14:27 -0400 |
commit | 7333881bb7b04f7e4e2a28638024ae82a9c14e81 (patch) | |
tree | 97548f94ab918d502b45a5dda40ece5ad4117617 /svl | |
parent | 6255be7ca294d350143290c343673f264f42220c (diff) |
Formula tokens, formula cells and formula interpreters to use shared strings.
Change-Id: I5da99869fc7f61ce698180fa5daa9be9db9ac132
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/sharedstring.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/svl/source/misc/sharedstring.cxx b/svl/source/misc/sharedstring.cxx index 0438421b2efc..8389ff836c8f 100644 --- a/svl/source/misc/sharedstring.cxx +++ b/svl/source/misc/sharedstring.cxx @@ -11,6 +11,15 @@ namespace svl { +SharedString SharedString::getEmptyString() +{ + // unicode string array for empty string is globally shared in OUString. + // Let's take advantage of that. + rtl_uString* pData = NULL; + rtl_uString_new(&pData); + return SharedString(pData, pData); +} + SharedString::SharedString() : mpData(NULL), mpDataIgnoreCase(NULL) {} SharedString::SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase ) : |