Kaydet (Commit) d868e2d2 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: Unreachable code: Use SAL_WNOUNREACHABLE_CODE_PUSH/POP

Cleaner than my first attempt.

This reverts commit 9c0ba0ba.

Change-Id: Iec9da427ab2a92cb0765f73af14d83a37f765290
üst 5326020f
......@@ -1057,6 +1057,9 @@ sal_Bool Content::isFolder()
}
//=========================================================================
SAL_WNOUNREACHABLE_CODE_PUSH
sal_Bool Content::isDocument()
throw( CommandAbortedException, RuntimeException, Exception )
{
......@@ -1072,13 +1075,13 @@ sal_Bool Content::isDocument()
get() ) ),
m_xImpl->getEnvironment() );
#if !(defined(_MSC_VER) && defined(ENABLE_LTO))
// Unreachable - cancelCommandExecution always throws an exception,
// But some compilers complain...
return sal_False;
#endif
}
SAL_WNOUNREACHABLE_CODE_POP
//=========================================================================
//=========================================================================
//
......
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