summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-03-30 23:34:03 -0400
committerJan Holesovsky <kendy@collabora.com>2018-06-01 08:59:11 +0200
commit6b699d15956faa880784011dfa01b16eef900fe3 (patch)
treec13edaa80d1f7d9e49e256325491cff140a47759 /sd
parent396e8bb3f0406c36bf0428c3e220aba7c5ab5f12 (diff)
svx: sd: cosmetics
Change-Id: Ic82e0b20b6e0f0ecdd308969c85c887ef84d2340
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/pdf/sdpdffilter.cxx2
-rw-r--r--sd/source/ui/view/drviews2.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx
index ade8bac0e1f0..c3de6588c874 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -112,7 +112,7 @@ bool SdPdfFilter::Import()
auto pPdfData = std::make_shared<uno::Sequence<sal_Int8>>(aPdfData);
mrDocument.CreateFirstPages();
- for (int i = 0; i < aBitmaps.size() - 1; ++i)
+ for (size_t i = 0; i < aBitmaps.size() - 1; ++i)
{
mrDocument.DuplicatePage(0);
}
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 1311d8b551a1..5229738d1b65 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -2740,9 +2740,9 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
SdrGrafObj* pGraf= dynamic_cast< SdrGrafObj *>( pObj );
SdrOle2Obj* pOle2= dynamic_cast< SdrOle2Obj *>( pObj );
- if(pGraf)
+ if (pGraf != nullptr)
{
- if(pGraf->HasGDIMetaFile())
+ if (pGraf->HasGDIMetaFile())
{
nCount += pGraf->GetGraphic().GetGDIMetaFile().GetActionSize();
}