diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/helper/stlport.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/helper/stlport.h b/src/helper/stlport.h deleted file mode 100644 index c7b00eb28..000000000 --- a/src/helper/stlport.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef __STL_PORT_H__ -#define __STK_PORT_H__ - - -#include <list> -#include <glib.h> - -template <typename T> -class StlConv { -public : - static void slist(std::list<T> &stlList, const GSList *slist) { - for (const GSList *l = slist; l != NULL; l = l->next) { - T item = reinterpret_cast<T>(l->data); - stlList.push_back(item); - } - } - static void list(std::list<T> &stlList, const GList *list) { - for (const GList *l = list; l != NULL; l = l->next) { - T item = reinterpret_cast<T>(l->data); - stlList.push_back(item); - } - } -}; - -#endif |
