diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-07-08 16:47:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-07-08 18:01:07 +0200 |
commit | 27ffdcf096a7e9863489599dd80528b088d1e9b8 (patch) | |
tree | b1b6c86cff34914f04c69359ea51b2e835c6da0e /lotuswordpro | |
parent | ca7fa700b10ea8947333ec72f763c3d47a4b2e57 (diff) |
rhbz#2104545: Only call utl::IsYounger when its result is actually used
...as it may be expensive, or even throw (uncaught) exceptions (as apparently
happened at rhbz#2104545, throwing some css::uno::RuntimeException while aMedObj
was an sftp URL).
The two branches in the if statement's condition that will now potentially call
physObjIsOlder are disjoint (one for aMedObj being a file URL, the other for
aMedObj being any WebDAV-related URL), so there is no chance that this change
accidentally causes utl::IsYounger to be called more often than it used to be
called.
Change-Id: I29a5f18a12a8b83ec603366db26451175b5622c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136904
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lotuswordpro')
0 files changed, 0 insertions, 0 deletions