summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:30:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:30:35 +0200
commit643787f22eaf057ee7d0a4f49065834e11b92ce5 (patch)
tree51a492ac28d332ca33b9373a5505e522e1951328 /uui
parente2a218114de3fd74848323238188c847a733d9b3 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: uui
Change-Id: I2ecf4a804a9fa4056f956bea245b64cb7c087595
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index e97be349a459..fdbe9eccbc67 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -163,9 +163,7 @@ UUIInteractionHelper::handleRequest(
uno::Reference< task::XInteractionRequest > const & rRequest)
{
if(
- // be aware,it is the same type
- static_cast< oslThreadIdentifier >(
- Application::GetMainThreadIdentifier())
+ Application::GetMainThreadIdentifier()
!= osl::Thread::getCurrentIdentifier()
&&
GetpApp()
@@ -217,9 +215,7 @@ UUIInteractionHelper::getStringFromRequest(
uno::Reference< task::XInteractionRequest > const & rRequest)
{
if(
- // be aware,it is the same type
- static_cast< oslThreadIdentifier >(
- Application::GetMainThreadIdentifier())
+ Application::GetMainThreadIdentifier()
!= osl::Thread::getCurrentIdentifier()
&&
GetpApp()