diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 00:59:05 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 09:47:54 +0200 |
commit | c28c6126dc96f57aec29a3fa25df5ba4ab5f28f8 (patch) | |
tree | fb5dba54c6fcb7b4cf62fabc4ab5d62b6b829697 | |
parent | d6aaaf6960c16ef63bfa3f88e641c13f33b9c680 (diff) |
we can do this before the conditional
Change-Id: Iedd3404931e578c40726d663e5460e9e3af56832
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 52ded5f04933..03e33efd560f 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -110,14 +110,13 @@ namespace : m_pNewCntntNode(pNewCntntNode), m_nLen(nLen), m_nCorrLen(nCorrLen) {}; void operator()(SwPosition& rPos, sal_Int32 nCntnt) const { + rPos.nNode = *m_pNewCntntNode; if( nCntnt < m_nCorrLen ) { - rPos.nNode = *m_pNewCntntNode; rPos.nContent.Assign(const_cast<SwCntntNode*>(m_pNewCntntNode), std::min( nCntnt, static_cast<sal_Int32>(m_nLen) ) ); } else { - rPos.nNode = *m_pNewCntntNode; rPos.nContent -= m_nCorrLen; } }; |