diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-07-27 10:07:18 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-07-27 10:08:29 -0300 |
commit | 1b4094837f983d6273a81daffc5bbffedc82cf2c (patch) | |
tree | b780d13e3aa566df6e9287584f96023fb4f71bac /tests/libsample/mapuser.h | |
parent | 8a16ff951633c3755cf370228709afaf416b0407 (diff) |
Fix char* converter
Fix tests.
Created warnning about return last ref of python object.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample/mapuser.h')
-rw-r--r-- | tests/libsample/mapuser.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/libsample/mapuser.h b/tests/libsample/mapuser.h index 78cc4f34c..c963743ac 100644 --- a/tests/libsample/mapuser.h +++ b/tests/libsample/mapuser.h @@ -38,6 +38,7 @@ #include <map> #include <list> #include <utility> +#include <string> #include "complex.h" #include "libsamplemacros.h" @@ -48,16 +49,16 @@ public: MapUser() {} virtual ~MapUser() {} - virtual std::map<const char*, std::pair<Complex, int> > createMap(); - std::map<const char*, std::pair<Complex, int> > callCreateMap(); + virtual std::map<std::string, std::pair<Complex, int> > createMap(); + std::map<std::string, std::pair<Complex, int> > callCreateMap(); - void showMap(std::map<const char*, int> mapping); + void showMap(std::map<std::string, int> mapping); - void setMap(std::map<const char*, std::list<int> > map) { m_map = map; } - std::map<const char*, std::list<int> > getMap() { return m_map; } + void setMap(std::map<std::string, std::list<int> > map) { m_map = map; } + std::map<std::string, std::list<int> > getMap() { return m_map; } private: - std::map<const char*, std::list<int> > m_map; + std::map<std::string, std::list<int> > m_map; }; #endif // MAPUSER_H |