diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-01-13 02:20:15 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-01-13 02:20:15 (GMT) |
commit | c443aaa23e079d8ab94942bfefa65b940c1acd01 (patch) | |
tree | beab36f1446339fe1b157c349c0808e4f5106982 /src/uscxml/plugins/datamodel/prolog | |
parent | a116aeb2cf5a84fa03f9814c3884561149029267 (diff) | |
download | uscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.zip uscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.tar.gz uscxml-c443aaa23e079d8ab94942bfefa65b940c1acd01.tar.bz2 |
Fixed bugs intriduced by PIMPL
Diffstat (limited to 'src/uscxml/plugins/datamodel/prolog')
-rw-r--r-- | src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp | 4 | ||||
-rw-r--r-- | src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp index 3e20867..5a33080 100644 --- a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp +++ b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.cpp @@ -20,8 +20,8 @@ bool connect(pluma::Host& host) { SWIDataModel::SWIDataModel() { } -DataModelImpl* SWIDataModel::create(Interpreter* interpreter) { - SWIDataModel* dm = new SWIDataModel(); +boost::shared_ptr<DataModelImpl> SWIDataModel::create(Interpreter* interpreter) { + boost::shared_ptr<SWIDataModel> dm = boost::shared_ptr<SWIDataModel>(new SWIDataModel()); dm->_interpreter = interpreter; const char* swiPath = SWI_LIBRARY_PATH; dm->_plEngine = new PlEngine((char*)swiPath); diff --git a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h index f5f5247..1d5a454 100644 --- a/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h +++ b/src/uscxml/plugins/datamodel/prolog/swi/SWIDataModel.h @@ -15,7 +15,7 @@ class SWIDataModel : public DataModelImpl { public: SWIDataModel(); virtual ~SWIDataModel(); - virtual DataModelImpl* create(Interpreter* interpreter); + virtual boost::shared_ptr<DataModelImpl> create(Interpreter* interpreter); virtual std::set<std::string> getNames() { std::set<std::string> names; |