diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-12 19:32:04 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-12 20:22:16 +0100 |
commit | 7a201ad4bc701a0e535b230a1613b76207f5a4ea (patch) | |
tree | e7e62a66ccfdf8111143e5f46b60039ca1bebdb9 /sfx2 | |
parent | 404e4c37f16d1788a615d58bba9ed3929c1e554f (diff) |
sfx2: PVS-Studio V595 'm_pResMgr' pointer could be null
Change-Id: I0701631c928f198e4bb0884c78b3586402a6fcd6
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 2 |
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(); |