diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:25:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:25:38 +0100 |
commit | 029149e9b7aa8ad66dca2972e26385c831153c80 (patch) | |
tree | fd5cc80e4372eecd4e9d68b636a39ef406cd286c /desktop/source/lib | |
parent | 6e8765b161a1c839fd303eecbd4ddd56f85b86ac (diff) |
More loplugin:cstylecast: desktop
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: I492363d79e443221b139f0c192a552cc5548ee4f
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 99c3f997ae68..7190b030ea9a 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2075,7 +2075,7 @@ static void doc_paintPartTile(LibreOfficeKitDocument* pThis, { if (pViewShell->getPart() == nPart) { - nViewId = (sal_Int32)pViewShell->GetViewShellId(); + nViewId = static_cast<sal_Int32>(pViewShell->GetViewShellId()); doc_setView(pThis, nViewId); break; } @@ -2636,7 +2636,7 @@ static char* getFonts (const char* pCommand) while (pAry[nSizeCount]) { boost::property_tree::ptree aChild; - aChild.put("", (float)pAry[nSizeCount] / 10); + aChild.put("", static_cast<float>(pAry[nSizeCount]) / 10); aChildren.push_back(std::make_pair("", aChild)); nSizeCount++; } |