mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:43:03 +01:00
Second attempt, this time MSVC10 complains
This commit is contained in:
parent
acf9fbee1b
commit
24e7e1b6ee
@ -137,8 +137,7 @@ public:
|
|||||||
}
|
}
|
||||||
else if (dpNumber)
|
else if (dpNumber)
|
||||||
{
|
{
|
||||||
const DPItem item = {dpSequence, dpNumber, ++dpMapMark};
|
dpMap.insert(pos, DPItem(dpSequence, dpNumber, ++dpMapMark));
|
||||||
dpMap.insert(pos, item);
|
|
||||||
|
|
||||||
if (dpMap.getCount() == MAX_DPMAP_ITEMS)
|
if (dpMap.getCount() == MAX_DPMAP_ITEMS)
|
||||||
freeOldestMapItems();
|
freeOldestMapItems();
|
||||||
@ -178,6 +177,14 @@ private:
|
|||||||
ULONG physNum;
|
ULONG physNum;
|
||||||
ULONG mark;
|
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)
|
static ULONG generate(const DPItem& item)
|
||||||
{
|
{
|
||||||
return item.seqNum;
|
return item.seqNum;
|
||||||
|
Loading…
Reference in New Issue
Block a user