Skip to content

Commit 2f25842

Browse files
author
sja
committed
module exchange : rename __identifier to __id because it's keyword for VS ...
1 parent 1d56921 commit 2f25842

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mailbox/exchange/pff_item_info.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ ItemInfo::ItemInfo(libpff_item_t* item, int index, ItemStatusType statusType, It
6464

6565
this->__item = item;
6666
this->__index = index;
67-
this->__identifier = 0;
67+
this->__id = 0;
6868
this->__statusType = statusType;
6969
this->__attachedInfo = attachedInfo;
7070

7171
if (this->__statusType != Recovered && this->__statusType != Orphan && this->__statusType != AttachmentItem)
72-
if (libpff_item_get_identifier(this->__item, &(this->__identifier), &pff_error) != 1)
72+
if (libpff_item_get_identifier(this->__item, &(this->__id), &pff_error) != 1)
7373
check_error(pff_error);
7474
}
7575

7676
ItemInfo::ItemInfo(ItemInfo* itemInfo)
7777
{
7878
this->__item = NULL;
7979
this->__index = itemInfo->index();
80-
this->__identifier = itemInfo->identifier();
80+
this->__id = itemInfo->identifier();
8181
this->__statusType = itemInfo->statusType();
8282
if (itemInfo->attachedInfo() != NULL)
8383
this->__attachedInfo = new ItemInfo(itemInfo->attachedInfo());
@@ -135,7 +135,7 @@ Item* ItemInfo::item(libpff_file_t* const pff_file)
135135
}
136136
else
137137
{
138-
if (libpff_file_get_item_by_identifier(pff_file, this->__identifier, &pff_item, &pff_error) == 1)
138+
if (libpff_file_get_item_by_identifier(pff_file, this->__id, &pff_item, &pff_error) == 1)
139139
return (new Item(pff_item));
140140
else
141141
check_error(pff_error);
@@ -156,7 +156,7 @@ ItemInfo::ItemStatusType ItemInfo::statusType(void)
156156

157157
uint32_t ItemInfo::identifier(void)
158158
{
159-
return (this->__identifier);
159+
return (this->__id);
160160
}
161161

162162
uint8_t ItemInfo::type(void)

mailbox/exchange/pff_item_info.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ItemInfo
5757
int index(void);
5858
private:
5959
int __index;
60-
uint32_t __identifier;
60+
uint32_t __id;
6161
ItemStatusType __statusType;
6262
ItemInfo* __attachedInfo;
6363
libpff_item_t* __item;

0 commit comments

Comments
 (0)