mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: initialize KSycocaFactory::Private::m_sycocaDict member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
fdce619651
commit
8133f7f73a
1 changed files with 12 additions and 6 deletions
|
@ -31,10 +31,15 @@
|
|||
class KSycocaFactory::Private
|
||||
{
|
||||
public:
|
||||
Private() : mOffset(0),
|
||||
Private()
|
||||
: mOffset(0),
|
||||
m_sycocaDictOffset(0),
|
||||
m_beginEntryOffset(0),
|
||||
m_endEntryOffset(0) {}
|
||||
m_endEntryOffset(0),
|
||||
m_sycocaDict(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
~Private()
|
||||
{
|
||||
delete m_sycocaDict;
|
||||
|
@ -48,7 +53,8 @@ public:
|
|||
};
|
||||
|
||||
KSycocaFactory::KSycocaFactory(KSycocaFactoryId factory_id)
|
||||
: m_resourceList(0), m_entryDict(0), m_str(0), d(new Private)
|
||||
: m_resourceList(0), m_entryDict(0), m_str(0),
|
||||
d(new Private())
|
||||
{
|
||||
if (!KSycoca::self()->isBuilding() && (m_str = KSycoca::self()->findFactory(factory_id))) {
|
||||
// Read position of index tables....
|
||||
|
@ -68,7 +74,7 @@ KSycocaFactory::KSycocaFactory(KSycocaFactoryId factory_id)
|
|||
} else {
|
||||
// We are in kbuildsycoca4 -- build new database!
|
||||
m_entryDict = new KSycocaEntryDict;
|
||||
d->m_sycocaDict = new KSycocaDict;
|
||||
d->m_sycocaDict = new KSycocaDict();
|
||||
d->m_beginEntryOffset = 0;
|
||||
d->m_endEntryOffset = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue