summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-27 10:40:22 +0200
committerNoel Grandin <noel@peralex.com>2015-03-02 08:59:18 +0200
commit10bc10dd20520a72d030be429798d0cc19466fb5 (patch)
treef4b3f849776dd319c57a944f5875ac7b4f0e8685 /sc
parente2ac5e744e9a4a3776a72bde4778ed1e48c5e895 (diff)
cppcheck: redundantCondition
Change-Id: I4fe72c7e6c76954d3b370168ee9664d66c90fe6e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xihelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx
index 01ba6c146eb6..cdf1c17bb195 100644
--- a/sc/source/filter/excel/xihelper.cxx
+++ b/sc/source/filter/excel/xihelper.cxx
@@ -762,7 +762,7 @@ void XclImpUrlHelper::DecodeUrl(
bool XclImpUrlHelper::DecodeLink( OUString& rApplic, OUString& rTopic, const OUString& rEncUrl )
{
sal_Int32 nPos = rEncUrl.indexOf( EXC_DDE_DELIM );
- if( (nPos != -1) && (0 < nPos) && (nPos + 1 < rEncUrl.getLength()) )
+ if( (nPos > 0) && (nPos + 1 < rEncUrl.getLength()) )
{
rApplic = rEncUrl.copy( 0, nPos );
rTopic = rEncUrl.copy( nPos + 1 );