Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-frelon
Commits
e375b7ba
Commit
e375b7ba
authored
Sep 25, 2012
by
Alejandro Homs Puron
Browse files
* Fixed (forgotten) bug returning the same (static) RegStrMap instance to SIP
parent
30ba8495
Changes
1
Hide whitespace changes
Inline
Side-by-side
sip/Frelon.sip
View file @
e375b7ba
...
...
@@ -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
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment