summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/lnkbase.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sfx2/lnkbase.hxx b/include/sfx2/lnkbase.hxx
index c3b981afebfe..ca29ebe3547e 100644
--- a/include/sfx2/lnkbase.hxx
+++ b/include/sfx2/lnkbase.hxx
@@ -65,7 +65,8 @@ constexpr bool isClientType(SvBaseLinkObjectType t)
}
constexpr bool isClientFileType(SvBaseLinkObjectType t)
{
- return static_cast<int>(t) & static_cast<int>(SvBaseLinkObjectType::ClientFile);
+ auto check = static_cast<int>(SvBaseLinkObjectType::ClientFile);
+ return (static_cast<int>(t) & check) == check;
}
struct BaseLink_Impl;