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
UUIInteractionHelper::handleRequest(
uno::Reference< task::XInteractionRequest > const & rRequest)
{
Application* pApp = 0;
if(
// be aware,it is the same type
static_cast< oslThreadIdentifier >(
Application::GetMainThreadIdentifier())
!= osl::Thread::getCurrentIdentifier()
&&
(pApp = GetpApp())
!= 0
GetpApp()
) {
// we are not in the main thread, let it handle that stuff
HandleData aHD(rRequest);
......@@ -227,15 +225,13 @@ beans::Optional< OUString >
UUIInteractionHelper::getStringFromRequest(
uno::Reference< task::XInteractionRequest > const & rRequest)
{
Application* pApp = 0;
if(
// be aware,it is the same type
static_cast< oslThreadIdentifier >(
Application::GetMainThreadIdentifier())
!= osl::Thread::getCurrentIdentifier()
&&
(pApp = GetpApp())
!= 0
GetpApp()
) {
// we are not in the main thread, let it handle that stuff
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