diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-23 21:15:23 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-23 22:41:28 +0100 |
commit | 990d32dad6bdf5d92a14d8bc02ae2853facd9097 (patch) | |
tree | b049c19cf6664ba7960c8ed522031a577353d8b6 /sc/source/core/tool | |
parent | 758ff97066652fbdd960121d42e659d3ab90e7d4 (diff) |
allow matching of empty cells as svl::SharedString (tdf#133804)
This may speed up some lookups.
Change-Id: I13a39abc43c64eb758fa55a6cdbda3e83e179121
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125743
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/core/tool')
-rw-r--r-- | sc/source/core/tool/cellform.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/tool/cellform.cxx b/sc/source/core/tool/cellform.cxx index bc46c4567744..da81abba383c 100644 --- a/sc/source/core/tool/cellform.cxx +++ b/sc/source/core/tool/cellform.cxx @@ -174,6 +174,10 @@ OUString ScCellFormat::GetInputString( return str; } + case CELLTYPE_NONE: + if( pShared != nullptr ) + *pShared = &svl::SharedString::getEmptyString(); + return OUString(); default: return OUString(); } |