diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:14 +0100 |
commit | 48db069fd7341ad8128d0e9a5fbcc5b092fe9860 (patch) | |
tree | 1e7e14069f35086928b11f48c0a67dedec8730bc /sfx2/source/view/lokhelper.cxx | |
parent | 5e7e3c3bd7bd10a9f7216d4d9fa8f2c61bf2db3e (diff) |
More loplugin:cstylecast: sfx2
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Ia3bed56999f3d684f706ce0bd5be8a2269b06d22
Diffstat (limited to 'sfx2/source/view/lokhelper.cxx')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 6fd6a7699038..b84496be2c27 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -32,7 +32,7 @@ int SfxLokHelper::createView() SfxViewShell* pViewShell = SfxViewShell::Current(); if (!pViewShell) return -1; - return (sal_Int32)pViewShell->GetViewShellId(); + return static_cast<sal_Int32>(pViewShell->GetViewShellId()); } void SfxLokHelper::destroyView(int nId) @@ -46,7 +46,7 @@ void SfxLokHelper::destroyView(int nId) for (SfxViewShell* pViewShell : rViewArr) { - if ((sal_Int32)pViewShell->GetViewShellId() == nViewShellId) + if (static_cast<sal_Int32>(pViewShell->GetViewShellId()) == nViewShellId) { SfxViewFrame* pViewFrame = pViewShell->GetViewFrame(); SfxRequest aRequest(pViewFrame, SID_CLOSEWIN); @@ -67,7 +67,7 @@ void SfxLokHelper::setView(int nId) for (SfxViewShell* pViewShell : rViewArr) { - if ((sal_Int32)pViewShell->GetViewShellId() == nViewShellId) + if (static_cast<sal_Int32>(pViewShell->GetViewShellId()) == nViewShellId) { // update the current LOK language for the dialog tunneling comphelper::LibreOfficeKit::setLanguageTag(pViewShell->GetLOKLanguageTag()); @@ -96,7 +96,7 @@ int SfxLokHelper::getView(SfxViewShell* pViewShell) if (!pViewShell) return -1; - return (sal_Int32)pViewShell->GetViewShellId(); + return static_cast<sal_Int32>(pViewShell->GetViewShellId()); } std::size_t SfxLokHelper::getViewsCount() @@ -118,7 +118,7 @@ bool SfxLokHelper::getViewIds(int* pArray, size_t nSize) for (std::size_t i = 0; i < rViewArr.size(); ++i) { SfxViewShell* pViewShell = rViewArr[i]; - pArray[i] = (sal_Int32)pViewShell->GetViewShellId(); + pArray[i] = static_cast<sal_Int32>(pViewShell->GetViewShellId()); } return true; } @@ -194,7 +194,7 @@ void SfxLokHelper::notifyInvalidation(SfxViewShell const* pThisView, const OStri if (comphelper::LibreOfficeKit::isPartInInvalidation()) { aBuf.append(", "); - aBuf.append((sal_Int32) pThisView->getPart()); + aBuf.append(static_cast<sal_Int32>(pThisView->getPart())); } pThisView->libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, aBuf.makeStringAndClear().getStr()); } |