8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Second attempt, this time MSVC10 complains

This commit is contained in:
Dmitry Yemanov 2016-11-24 11:41:16 +03:00
parent acf9fbee1b
commit 24e7e1b6ee

View File

@ -137,8 +137,7 @@ public:
}
else if (dpNumber)
{
const DPItem item = {dpSequence, dpNumber, ++dpMapMark};
dpMap.insert(pos, item);
dpMap.insert(pos, DPItem(dpSequence, dpNumber, ++dpMapMark));
if (dpMap.getCount() == MAX_DPMAP_ITEMS)
freeOldestMapItems();
@ -178,6 +177,14 @@ private:
ULONG physNum;
ULONG mark;
DPItem()
: seqNum(0), physNum(0), mark(0)
{}
DPItem(ULONG sn, ULONG pn, ULONG mk)
: seqNum(sn), physNum(pn), mark(mk)
{}
static ULONG generate(const DPItem& item)
{
return item.seqNum;