Commit b3b591c6 authored by Jan Möbius's avatar Jan Möbius

Simplified interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9541 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1b34e696
......@@ -790,17 +790,11 @@ deleteData() {
}
QMap<QString, PerObjectData*>* BaseObject::getPerObjectDataMap() {
return &dataMap_;
QMap<QString, PerObjectData*>& BaseObject::getPerObjectDataMap() {
return dataMap_;
}
void BaseObject::getPerObjectDataMap( QMap<QString, PerObjectData*>* _map ) {
dataMap_ = *_map;
}
ObjectManager::ObjectManager() {
}
......
......@@ -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
* 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:
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