Skip to content

Commit 9ccd6a1

Browse files
committed
ews: reduce obscure syntax in tAttachment ctor
1 parent 0e37bbc commit 9ccd6a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exch/ews/structures.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,8 @@ tAlternateId::tAlternateId(Enum::IdFormatType format, std::string id, std::strin
13261326
tAttachment::tAttachment(const sAttachmentId& aid, const sShape& shape)
13271327
{
13281328
AttachmentId.emplace(aid);
1329-
fromProp(shape.get(PR_ATTACH_LONG_FILENAME), Name) || fromProp(shape.get(PR_DISPLAY_NAME), Name);
1329+
if (!fromProp(shape.get(PR_ATTACH_LONG_FILENAME), Name))
1330+
fromProp(shape.get(PR_DISPLAY_NAME), Name);
13301331
fromProp(shape.get(PR_ATTACH_MIME_TAG), ContentType);
13311332
fromProp(shape.get(PR_ATTACH_CONTENT_ID), ContentId);
13321333
fromProp(shape.get(PR_ATTACH_SIZE), Size);

0 commit comments

Comments
 (0)