diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-07-01 21:07:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-07-01 23:01:33 +0200 |
commit | 17217a93418c9a5233eecd9491a7c4269d15057f (patch) | |
tree | 871332bf42e5324d78ca18b54f4b81c07295fa71 /ucbhelper/source | |
parent | 8895dc3c4cb3e3fafcde1d0243dd683e7283b805 (diff) |
Use some more O3TL_UNREACHABLE
Change-Id: Ibcf1b1de7b43460266e99fc9f27c1de0b510a361
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136779
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucbhelper/source')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 4eeeab2008d6..48d3ee84a9da 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1022,8 +1022,6 @@ bool Content::isFolder() } -SAL_WNOUNREACHABLE_CODE_PUSH - bool Content::isDocument() { bool bDoc = false; @@ -1037,13 +1035,9 @@ bool Content::isDocument() get() ) ), m_xImpl->getEnvironment() ); - // Unreachable - cancelCommandExecution always throws an exception, - // But some compilers complain... - return false; + O3TL_UNREACHABLE; } -SAL_WNOUNREACHABLE_CODE_POP - void Content::lock() { Command aCommand; |