Commit e375b7ba authored by Alejandro Homs Puron's avatar Alejandro Homs Puron

* Fixed (forgotten) bug returning the same (static) RegStrMap instance to SIP

parent 30ba8495
......@@ -60,11 +60,8 @@ public:
static std::map<int, std::string> RegStrMap();
%MethodCode
typedef std::map<int, std::string> MapType;
static MapType *m = NULL;
if (!m)
m = new MapType(Frelon::RegStrMap.begin(),
Frelon::RegStrMap.end());
sipRes = m;
sipRes = new MapType(Frelon::RegStrMap.begin(),
Frelon::RegStrMap.end());
%End
};
......
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