summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/serverlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FTPFileYM/src/serverlist.cpp')
-rw-r--r--plugins/FTPFileYM/src/serverlist.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/FTPFileYM/src/serverlist.cpp b/plugins/FTPFileYM/src/serverlist.cpp
index 33cce223ec..eb1ad9c2cc 100644
--- a/plugins/FTPFileYM/src/serverlist.cpp
+++ b/plugins/FTPFileYM/src/serverlist.cpp
@@ -18,15 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
-ServerList *ServerList::instance = nullptr;
-ServerList &ftpList = ServerList::getInstance();
-
-extern Options &opt;
+ServerList ftpList;
void ServerList::init()
{
for (int i = 0; i < FTP_COUNT; i++) {
- ServerList::FTP *ftp = new ServerList::FTP(i);
+ FTP *ftp = new FTP(i);
ftpList.add(ftp);
}
}
@@ -35,8 +32,6 @@ void ServerList::deinit()
{
for (UINT i = 0; i < ftpList.size(); i++)
delete ftpList[i];
-
- delete this;
}
void ServerList::saveToDb() const