summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/unmodpg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-30 09:37:00 +0200
committerNoel Grandin <noel@peralex.com>2014-11-10 15:22:17 +0200
commit526917bbd06e290bb6669e2e52730a5941570b34 (patch)
treee663048111c00fb0738550d3cdbeff5e573b91e2 /sd/source/ui/view/unmodpg.cxx
parent36057c3a11deb3a7c3748d7aafd5e6dd08b58984 (diff)
loplugin: cstylecast
Change-Id: I9d3f642239bc5c7a52611b9c27fd0291940c7483
Diffstat (limited to 'sd/source/ui/view/unmodpg.cxx')
-rw-r--r--sd/source/ui/view/unmodpg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/unmodpg.cxx b/sd/source/ui/view/unmodpg.cxx
index 4c112ed5d7bf..abe3d73e0bae 100644
--- a/sd/source/ui/view/unmodpg.cxx
+++ b/sd/source/ui/view/unmodpg.cxx
@@ -98,7 +98,7 @@ void ModifyPageUndoAction::Undo()
if (mpPage->GetPageKind() == PK_STANDARD)
{
- SdPage* pNotesPage = (SdPage*)mpDoc->GetPage(mpPage->GetPageNum() + 1);
+ SdPage* pNotesPage = static_cast<SdPage*>(mpDoc->GetPage(mpPage->GetPageNum() + 1));
pNotesPage->SetName(maOldName);
}
}
@@ -141,7 +141,7 @@ void ModifyPageUndoAction::Redo()
if (mpPage->GetPageKind() == PK_STANDARD)
{
- SdPage* pNotesPage = (SdPage*)mpDoc->GetPage(mpPage->GetPageNum() + 1);
+ SdPage* pNotesPage = static_cast<SdPage*>(mpDoc->GetPage(mpPage->GetPageNum() + 1));
pNotesPage->SetName(maNewName);
}
}