Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
Diff: cpp/ModMiMicSetting.cpp
- Revision:
- 7:2b33a8d84eb3
- Parent:
- 3:0a94993be1f6
- Child:
- 14:4618692ec239
diff -r 9e06cb30603a -r 2b33a8d84eb3 cpp/ModMiMicSetting.cpp
--- a/cpp/ModMiMicSetting.cpp Sat Apr 06 14:36:26 2013 +0000
+++ b/cpp/ModMiMicSetting.cpp Tue Apr 09 09:32:25 2013 +0000
@@ -3,24 +3,18 @@
namespace MiMic
{
- ModMiMicSetting::ModMiMicSetting(const char* i_path)
+ ModMiMicSetting::ModMiMicSetting(const char* i_path):ModBaseClass(i_path)
{
- this->setParam(i_path);
}
- ModMiMicSetting::ModMiMicSetting()
+ ModMiMicSetting::ModMiMicSetting():ModBaseClass()
{
- this->_path=NULL;
}
ModMiMicSetting::~ModMiMicSetting()
{
- if(this->_path!=NULL){
- free(this->_path);
- }
}
void ModMiMicSetting::setParam(const char* i_path)
{
- this->_path=(char*)malloc(strlen(i_path)+1);
- strcpy(this->_path,i_path);
+ ModBaseClass::setParam(i_path);
}
bool ModMiMicSetting::execute(HttpdConnection& i_connection)
{
