summaryrefslogtreecommitdiff
path: root/plugins/Dbx_tree/src/DataBase.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-23 15:13:53 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-23 15:13:53 +0000
commit4917567d0e33f20b07b004c368cd66e301115db0 (patch)
treefa841e9647b10bb5a291196bae241974de30f060 /plugins/Dbx_tree/src/DataBase.cpp
parent83181e39a7613a9ed00c6c7ddcbea59a340d491e (diff)
small plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6193 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_tree/src/DataBase.cpp')
-rw-r--r--plugins/Dbx_tree/src/DataBase.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Dbx_tree/src/DataBase.cpp b/plugins/Dbx_tree/src/DataBase.cpp
index 37067ff350..451ce89a00 100644
--- a/plugins/Dbx_tree/src/DataBase.cpp
+++ b/plugins/Dbx_tree/src/DataBase.cpp
@@ -150,10 +150,7 @@ int CDataBase::LoadFile(TDBFileType Index)
TGenericFileHeader h;
m_EncryptionManager[Index] = new CEncryptionManager;
- if (CMappedMemory::InitMMAP())
- m_FileAccess[Index] = new CMappedMemory(m_FileName[Index]);
- else
- m_FileAccess[Index] = new CDirectAccess(m_FileName[Index]);
+ m_FileAccess[Index] = new CMappedMemory(m_FileName[Index]);
m_FileAccess[Index]->Read(&h, 0, sizeof(h));
m_EncryptionManager[Index]->InitEncryption(h.Gen.FileEncryption);