summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-20 12:02:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-23 06:17:29 +0000
commit7b26389414b203a4f3225acf0c027b93bcb234ac (patch)
tree144aeb20c5e191840c4fb862106b0d0344d0260f /sd
parent85ea267b7a8fbd5859569db6ef7ac8dd1bd9bcd1 (diff)
clang-tidy clang-analyzer-deadcode.DeadStores
Change-Id: I7113a13ac36db5beef3a17e9849c1f5506df2374 Reviewed-on: https://gerrit.libreoffice.org/25194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc3.cxx2
-rw-r--r--sd/source/filter/ppt/propread.cxx2
-rw-r--r--sd/source/ui/unoidl/unosrch.cxx1
3 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 5f8b31abd807..cf01895789ae 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -334,7 +334,7 @@ void SdDrawDocument::InsertBookmark(
if ( bOK && !rBookmarkList.empty() )
{
// Insert all object bookmarks
- bOK = InsertBookmarkAsObject(rBookmarkList, rExchangeList, bLink,
+ InsertBookmarkAsObject(rBookmarkList, rExchangeList, bLink,
pBookmarkDocSh, pObjPos, bCalcObjCount);
}
}
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx
index 6bf66d5f3329..ad2b802fa843 100644
--- a/sd/source/filter/ppt/propread.cxx
+++ b/sd/source/filter/ppt/propread.cxx
@@ -454,7 +454,6 @@ void Section::Read( SotStorageStream *pStrm )
{
if ( nPropSize > nStrmSize )
{
- nPropCount = 0;
break;
}
pStrm->Seek( nPropOfs + nSecOfs );
@@ -520,7 +519,6 @@ void Section::Read( SotStorageStream *pStrm )
nSize -= pStrm->Tell();
if ( nSize > nStrmSize )
{
- nPropCount = 0;
break;
}
sal_uInt8* pBuf = new sal_uInt8[ nSize ];
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index fd80a34d320d..bf9244440e76 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -569,7 +569,6 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno::
*pPos++ = nLastPos + 1;
*pPara++ = nLastPara;
- ndbg += 1;
pText++;
}
else