diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-04-04 12:00:02 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-04-04 12:00:02 +0200 |
commit | ce1365ec147a33a07df5bdc53796180d84b9d9e5 (patch) | |
tree | 7267b13fca907d722051002e92c70252c604ba75 | |
parent | 32c63e9a312b591dd36471bef9003975a37ae05a (diff) |
cppcheck: Identical code for different branches
Using a similar fix as Caolan's one:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=8f9bc93ba3299efbd8ad181481e6e2e87df7c066
Change-Id: Ib33f9585bf1e1c2cf6dd367bfe4eb0604794decc
-rw-r--r-- | sw/source/core/text/txtftn.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/text/txtftn.cxx b/sw/source/core/text/txtftn.cxx index 88ad8aa247aa..8e7c23cdf197 100644 --- a/sw/source/core/text/txtftn.cxx +++ b/sw/source/core/text/txtftn.cxx @@ -527,8 +527,7 @@ void SwTxtFrm::RemoveFtn( const sal_Int32 nStart, const sal_Int32 nLen ) else pFtnBoss->RemoveFtn( this, pFtn ); bRemove = bRemove || !bEndDoc; - OSL_ENSURE( bEndn ? !SwFtnBossFrm::FindFtn( this, pFtn ) : - !SwFtnBossFrm::FindFtn( this, pFtn ), + OSL_ENSURE( !SwFtnBossFrm::FindFtn( this, pFtn ), "SwTxtFrm::RemoveFtn: can't get off that footnote" ); } } |