Catch block smells like leftover debugging code

...especially as it doesn't change hr from S_OK, and compiling with /EHsc
(instead of /EHa) reveals that OleRun does not throw any (C++) exceptions (and
thus produces an "unreachable code" warning for the catch block).

Change-Id: Ic34e83e6ede3a214ccb073e3e54d6fcc493d46ea
This commit is contained in:
Stephan Bergmann
2013-11-29 17:42:08 +01:00
parent f304c90632
commit d694313b57

View File

@@ -988,16 +988,7 @@ void OleComponent::RunObject()
if ( !OleIsRunning( m_pNativeImpl->m_pOleObject ) )
{
HRESULT hr = S_OK;
try
{
hr = OleRun( m_pNativeImpl->m_pObj );
}
catch( ... )
{
int i = 0;
i++;
}
HRESULT hr = OleRun( m_pNativeImpl->m_pObj );
if ( FAILED( hr ) )
{