Commit 7d1bb2ae authored by Jan Möbius's avatar Jan Möbius
Browse files

Simplified interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9541 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8b89e93f
...@@ -790,17 +790,11 @@ deleteData() { ...@@ -790,17 +790,11 @@ deleteData() {
} }
QMap<QString, PerObjectData*>* BaseObject::getPerObjectDataMap() { QMap<QString, PerObjectData*>& BaseObject::getPerObjectDataMap() {
return &dataMap_; return dataMap_;
} }
void BaseObject::getPerObjectDataMap( QMap<QString, PerObjectData*>* _map ) {
dataMap_ = *_map;
}
ObjectManager::ObjectManager() { ObjectManager::ObjectManager() {
} }
......
...@@ -474,21 +474,14 @@ class DLLEXPORTONLY BaseObject : public QObject { ...@@ -474,21 +474,14 @@ class DLLEXPORTONLY BaseObject : public QObject {
* @{ */ * @{ */
//=========================================================================== //===========================================================================
/** \brief get map of all perObject Datas /** \brief get reference to map of all perObject Datas
* *
* Don't use this function! It's only for the backup Plugin to store and restore * Don't use this function! It's only for the backup Plugin to store and restore
* perObjectDatas! * perObjectDatas!
*/ */
QMap<QString, PerObjectData*>* getPerObjectDataMap(); QMap<QString, PerObjectData*>& getPerObjectDataMap();
/** \brief set map of all perObject Datas
*
* Don't use this function! It's only for the backup Plugin to store and restore
* perObjectDatas!
*/
void getPerObjectDataMap( QMap<QString, PerObjectData*>* _map );
private: private:
QMap<QString, PerObjectData* > dataMap_; QMap<QString, PerObjectData* > dataMap_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment