From 5e7e3c3bd7bd10a9f7216d4d9fa8f2c61bf2db3e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:16:03 +0100 Subject: More loplugin:cstylecast: shell auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ifb1f116ca0af7d0a8a6bdc6a16f6cc5e1c9e3a6a --- shell/source/backends/desktopbe/desktopbackend.cxx | 2 +- shell/source/backends/kde4be/kde4access.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/source/backends') 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(*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(nProxyType) ) ); } else { OSL_ASSERT(false); // this cannot happen } -- cgit