summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-12-02 23:58:31 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-12-03 01:20:08 +0100
commit6ed52ecfed5781659cd27ff9aea5d0a04be77cd1 (patch)
tree5a8fb0696d7a575646dc6176d87bd57c888a3055 /starmath
parent3abcd34f37b6aba5025631c64a49d4c8c34effd2 (diff)
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: Ieff0dde4faee209200b8f4e809e8bb4eb1b8f4a6 Reviewed-on: https://gerrit.libreoffice.org/64433 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/symbol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx
index 86af8f6c528e..404b1de01599 100644
--- a/starmath/source/symbol.cxx
+++ b/starmath/source/symbol.cxx
@@ -147,7 +147,7 @@ bool SmSymbolManager::AddOrReplaceSymbol( const SmSym &rSymbol, bool bForceChang
m_aSymbols[ aSymbolName ] = rSymbol;
bAdded = true;
}
- else if (pFound && !bForceChange && bSymbolConflict)
+ else if (bSymbolConflict)
{
// TODO: to solve this a document owned symbol manager would be required ...
SAL_WARN("starmath", "symbol conflict, different symbol with same name found!");