diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-15 13:47:06 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-15 13:52:06 -0300 |
commit | 7f55b8c2f579753ffaff6ef4d75e0dbc7fd9da34 (patch) | |
tree | e767348ea6a46c9bf17c46aada0f072a4e5dbb4d /tests/samplebinding/pair_conversions.h | |
parent | 1d811177537207ff0df63985ca4e071c8908a630 (diff) |
Removed useless ValueHolder template.
Diffstat (limited to 'tests/samplebinding/pair_conversions.h')
-rw-r--r-- | tests/samplebinding/pair_conversions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/samplebinding/pair_conversions.h b/tests/samplebinding/pair_conversions.h index b1df3c5fe..d5f1431ca 100644 --- a/tests/samplebinding/pair_conversions.h +++ b/tests/samplebinding/pair_conversions.h @@ -1,10 +1,10 @@ template <typename StdPair> struct Converter_std_pair { - static PyObject* toPython(ValueHolder<StdPair> holder) + static PyObject* toPython(StdPair holder) { - ValueHolder<typename StdPair::first_type> first(holder.value.first); - ValueHolder<typename StdPair::second_type> second(holder.value.second); + typename StdPair::first_type first(holder.first); + typename StdPair::second_type second(holder.second); PyObject* tuple = PyTuple_New(2); PyTuple_SET_ITEM(tuple, 0, Converter<typename StdPair::first_type>::toPython(first)); PyTuple_SET_ITEM(tuple, 1, Converter<typename StdPair::second_type>::toPython(second)); |