summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-06 10:02:47 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-03-06 10:02:47 +0100
commit72f50743af65eaa90b33486388e57fae9511f310 (patch)
treec5c335dfe02db0d49dceca05eb41ba5f17449471 /sw
parentdff052784ec1d40bf15f0babb669b739d1be8e12 (diff)
cppcheck: help it a bit to not fail with syntax error in its AST
Change-Id: I22e1405b2ad94ec4d47011c3f11d108a1bde4fba
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docedt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 4b8b9770d58c..7dc26e149a43 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -327,8 +327,8 @@ void sw_GetJoinFlags( SwPaM& rPam, bool& rJoinText, bool& rJoinPrev )
rJoinPrev = rPam.GetPoint() == pStt;
OSL_ENSURE( !pStt->nContent.GetIndex() &&
pEndNd->GetText().getLength() != pEnd->nContent.GetIndex()
- ? rPam.GetPoint()->nNode < rPam.GetMark()->nNode
- : rPam.GetPoint()->nNode > rPam.GetMark()->nNode,
+ ? (rPam.GetPoint()->nNode < rPam.GetMark()->nNode)
+ : (rPam.GetPoint()->nNode > rPam.GetMark()->nNode),
"sw_GetJoinFlags");
}
}