diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:03 +0100 |
commit | 5e7e3c3bd7bd10a9f7216d4d9fa8f2c61bf2db3e (patch) | |
tree | c7b8733633b819ebd4c0682b0cc8c14a34838db9 /shell/source/backends | |
parent | 16fd3dd3e0976c16b31eeb88ca61f83301626cdf (diff) |
More loplugin:cstylecast: shell
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: Ifb1f116ca0af7d0a8a6bdc6a16f6cc5e1c9e3a6a
Diffstat (limited to 'shell/source/backends')
-rw-r--r-- | shell/source/backends/desktopbe/desktopbackend.cxx | 2 | ||||
-rw-r--r-- | shell/source/backends/kde4be/kde4access.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index 1ce27ebbc8fb..b641d00456e8 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -207,7 +207,7 @@ OUString xdg_user_dir_lookup (const char *type) { if ((*p == '\\') && (*(p+1) != 0)) p++; - aUserDirBuf.append((sal_Unicode)*p++); + aUserDirBuf.append(static_cast<sal_Unicode>(*p++)); } }//end of while osl_closeFile(handle); diff --git a/shell/source/backends/kde4be/kde4access.cxx b/shell/source/backends/kde4be/kde4access.cxx index 93c7cbb327d6..fc27054cd895 100644 --- a/shell/source/backends/kde4be/kde4access.cxx +++ b/shell/source/backends/kde4be/kde4access.cxx @@ -288,7 +288,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) { nProxyType = 0; } return css::beans::Optional< css::uno::Any >( - true, uno::makeAny( (sal_Int32) nProxyType ) ); + true, uno::makeAny( static_cast<sal_Int32>(nProxyType) ) ); } else { OSL_ASSERT(false); // this cannot happen } |