summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-06-13 10:16:56 +0200
committerNoel Grandin <noel@peralex.com>2015-06-15 14:06:31 +0200
commitdcf6abfcdf3f4b7aec5796c9f6c806889328135f (patch)
treef0d7081b5454bbe58318ec87dcc6b5465ed16965 /sd
parent8f60697cf8e5227d503738e3c186433ac5dacfc8 (diff)
cppcheck:unreadVariable
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc3.cxx4
-rw-r--r--sd/source/ui/dlg/RemoteDialogClientBox.cxx1
2 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index cdd094cddc4f..33830602160f 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -383,7 +383,6 @@ bool SdDrawDocument::InsertBookmarkAsPage(
bool bMergeMasterPages,
bool bPreservePageNames)
{
- bool bOK = true;
bool bContinue = true;
bool bScaleObjects = false;
sal_uInt16 nReplacedStandardPages = 0;
@@ -416,8 +415,7 @@ bool SdDrawDocument::InsertBookmarkAsPage(
if (nSdPageCount==0 || nBMSdPageCount==0 || nMPageCount==0)
{
- bContinue = bOK = false;
- return bContinue;
+ return false;
}
// Store the size and some other properties of the first page and notes
diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx
index 06ac9c383441..7a052ad845cb 100644
--- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx
+++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx
@@ -331,7 +331,6 @@ void ClientBox::DrawRow(vcl::RenderContext& rRenderContext, const Rectangle& rRe
aTitleWidth = nMaxTitleWidth - (aTextHeight / 3);
OUString aShortTitle = rRenderContext.GetEllipsisString(rEntry->m_pClientInfo->mName, aTitleWidth );
rRenderContext.DrawText(aPos, aShortTitle);
- aTitleWidth += (aTextHeight / 3);
}
else
rRenderContext.DrawText(aPos, rEntry->m_pClientInfo->mName);