diff options
author | Eike Rathke <erack@redhat.com> | 2020-09-29 11:23:41 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-09-29 21:44:38 +0200 |
commit | 1acf517906b7cdc4931dd26319d467dff53ae7d2 (patch) | |
tree | 01bb319954fcba0cd6ad6a7066e04c16b1a04798 /sc/inc/compiler.hxx | |
parent | d2dc5b389ccf1c51975960660cb8f6ad4a6f928c (diff) |
Determine CharClass difference once, tdf#137091 follow-up
As a side note:
Clang plugin simplifybool for
!(rLT1.getLanguage() == "en" && rLT2.getLanguage() == "en")
told "error: logical negation of logical op containing negation, can be simplified"
which is nonsense (the message stayed the same while the checks evolved).
It actually complained about !(a==b && c==d) to be rewritten as
(a!=b || c!=d) whether that makes sense or not.. it may save one
boolean operation, yes, but..
Change-Id: Ib478d46d7ff926c1c9f65fec059c7a3f31fa7ce3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103601
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc/compiler.hxx')
-rw-r--r-- | sc/inc/compiler.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index c4550a2ae3f6..a8ea757922b1 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -287,6 +287,7 @@ private: std::queue<OpCode> maPendingOpCodes; // additional opcodes generated from a single symbol const CharClass* pCharClass; // which character classification is used for parseAnyToken and upper/lower + bool mbCharClassesDiffer; // whether pCharClass and current system locale's CharClass differ sal_uInt16 mnPredetectedReference; // reference when reading ODF, 0 (none), 1 (single) or 2 (double) sal_Int32 mnRangeOpPosInSymbol; // if and where a range operator is in symbol const Convention *pConv; |