summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 19:32:04 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 20:22:16 +0100
commit7a201ad4bc701a0e535b230a1613b76207f5a4ea (patch)
treee7e62a66ccfdf8111143e5f46b60039ca1bebdb9 /sfx2/source
parent404e4c37f16d1788a615d58bba9ed3929c1e554f (diff)
sfx2: PVS-Studio V595 'm_pResMgr' pointer could be null
Change-Id: I0701631c928f198e4bb0884c78b3586402a6fcd6
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/shutdownicon.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index d4ef0bbe05c4..5405efb1811f 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -324,7 +324,7 @@ OUString ShutdownIcon::GetResString( int id )
m_pResMgr = SfxResId::GetResMgr();
ResId aResId( id, *m_pResMgr );
aResId.SetRT( RSC_STRING );
- if( !m_pResMgr || !m_pResMgr->IsAvailable( aResId ) )
+ if (!m_pResMgr->IsAvailable(aResId))
return OUString();
return ResId(id, *m_pResMgr).toString();