Kaydet (Commit) bc793cba authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1223095 Unused pointer value

Change-Id: I94e55eefd35efd2daa8d3458022eeedfc05d9cb4
üst 41d43bc9
...@@ -168,15 +168,13 @@ bool ...@@ -168,15 +168,13 @@ bool
UUIInteractionHelper::handleRequest( UUIInteractionHelper::handleRequest(
uno::Reference< task::XInteractionRequest > const & rRequest) uno::Reference< task::XInteractionRequest > const & rRequest)
{ {
Application* pApp = 0;
if( if(
// be aware,it is the same type // be aware,it is the same type
static_cast< oslThreadIdentifier >( static_cast< oslThreadIdentifier >(
Application::GetMainThreadIdentifier()) Application::GetMainThreadIdentifier())
!= osl::Thread::getCurrentIdentifier() != osl::Thread::getCurrentIdentifier()
&& &&
(pApp = GetpApp()) GetpApp()
!= 0
) { ) {
// we are not in the main thread, let it handle that stuff // we are not in the main thread, let it handle that stuff
HandleData aHD(rRequest); HandleData aHD(rRequest);
...@@ -227,15 +225,13 @@ beans::Optional< OUString > ...@@ -227,15 +225,13 @@ beans::Optional< OUString >
UUIInteractionHelper::getStringFromRequest( UUIInteractionHelper::getStringFromRequest(
uno::Reference< task::XInteractionRequest > const & rRequest) uno::Reference< task::XInteractionRequest > const & rRequest)
{ {
Application* pApp = 0;
if( if(
// be aware,it is the same type // be aware,it is the same type
static_cast< oslThreadIdentifier >( static_cast< oslThreadIdentifier >(
Application::GetMainThreadIdentifier()) Application::GetMainThreadIdentifier())
!= osl::Thread::getCurrentIdentifier() != osl::Thread::getCurrentIdentifier()
&& &&
(pApp = GetpApp()) GetpApp()
!= 0
) { ) {
// we are not in the main thread, let it handle that stuff // we are not in the main thread, let it handle that stuff
HandleData aHD(rRequest); HandleData aHD(rRequest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment