mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
1. I see no reason to use explicit constructor in this case. More, it breaks build.
2. One more paranoid check by Claudio :)
This commit is contained in:
parent
abde3b2cad
commit
2b401cbbb8
@ -160,14 +160,14 @@ private:
|
||||
struct UsedBdb
|
||||
{
|
||||
UsedBdb() : bdb(NULL), count(0) {}
|
||||
explicit UsedBdb(BufferDesc* _bdb) : bdb(_bdb), count(1) {}
|
||||
UsedBdb(BufferDesc* _bdb) : bdb(_bdb), count(1) {}
|
||||
|
||||
BufferDesc* bdb;
|
||||
int count;
|
||||
|
||||
static const ULONG generate(const UsedBdb& p)
|
||||
{
|
||||
return p.bdb->bdb_page.getPageNum();
|
||||
return p.bdb ? p.bdb->bdb_page.getPageNum() : 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user