summaryrefslogtreecommitdiff
path: root/include/m_database.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-12 14:19:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-12 14:19:05 +0300
commitc5d7d8ab002cf73fd309a4eb65e4fc8d5dafa9db (patch)
treef056770de33275961cb70d42a933613a443b602a /include/m_database.h
parent002aca2fb53de2d7593e305c99190c52c3d72391 (diff)
event cursors for mdbx driver
Diffstat (limited to 'include/m_database.h')
-rw-r--r--include/m_database.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/m_database.h b/include/m_database.h
index 259e3a5699..972a1d2ece 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -702,7 +702,7 @@ public:
/////////////////////////////////////////////////////////////////////////////////////////
// Event cursors
-class MIR_CORE_EXPORT EventCursorBase : public MZeroedObject
+class MIR_CORE_EXPORT EventCursor : public MZeroedObject
{
friend class EventIterator;
@@ -710,11 +710,11 @@ protected:
DBEVENTINFO &dbei;
MCONTACT hContact;
- virtual ~EventCursorBase();
+ virtual ~EventCursor();
virtual MEVENT FetchNext() = 0;
public:
- EventCursorBase(MCONTACT _1, DBEVENTINFO &_2) :
+ EventCursor(MCONTACT _1, DBEVENTINFO &_2) :
hContact(_1),
dbei(_2)
{ }
@@ -728,17 +728,13 @@ public:
}
};
-#if !defined(CUSTOM_EVENT_CURSOR)
-typedef class EventCursorBase EventCursor;
-#endif
-
class EventIterator
{
- EventCursorBase *cursor;
- MEVENT hCurr;
+ EventCursor *cursor;
+ MEVENT hCurr = 0;
public:
- EventIterator(EventCursorBase *_1) :
+ EventIterator(EventCursor *_1) :
cursor(_1)
{}