summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-05 20:57:22 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-05 20:57:22 +0100
commitdedb414a50328bf00462409d14d8917ff24844be (patch)
tree8024df89792a668ad675730b124429c4f03dc1dd /source/WebAdmin.cpp
parentBiomeVisualiser: initial import (diff)
downloadcuberite-dedb414a50328bf00462409d14d8917ff24844be.tar
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.gz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.bz2
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.lz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.xz
cuberite-dedb414a50328bf00462409d14d8917ff24844be.tar.zst
cuberite-dedb414a50328bf00462409d14d8917ff24844be.zip
Diffstat (limited to 'source/WebAdmin.cpp')
-rw-r--r--source/WebAdmin.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp
index 2a83ac542..dd1a695ee 100644
--- a/source/WebAdmin.cpp
+++ b/source/WebAdmin.cpp
@@ -62,16 +62,15 @@ cWebAdmin::cWebAdmin( int a_Port /* = 8080 */ )
Init( m_Port );
}
+
+
+
+
cWebAdmin::~cWebAdmin()
{
WebAdmin = 0;
m_WebServer->Stop();
- while( m_Plugins.begin() != m_Plugins.end() )
- {
- delete *m_Plugins.begin();
- //m_Plugins.remove( *m_Plugins.begin() );
- }
delete m_WebServer;
delete m_IniFile;
@@ -79,12 +78,20 @@ cWebAdmin::~cWebAdmin()
delete m_Event;
}
+
+
+
+
void cWebAdmin::AddPlugin( cWebPlugin * a_Plugin )
{
m_Plugins.remove( a_Plugin );
m_Plugins.push_back( a_Plugin );
}
+
+
+
+
void cWebAdmin::RemovePlugin( cWebPlugin * a_Plugin )
{
m_Plugins.remove( a_Plugin );