summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_order.h
diff options
context:
space:
mode:
authorwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-02-11 09:40:09 +0000
committerwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-02-11 09:40:09 +0000
commit0fbbb6071648d47c75d14eb1075bf6f5c85349cc (patch)
tree14ab569569e235f91773857784e711563d5e0640 /muggle-plugin/mg_order.h
parentc17ecbd260b3304b60fedfa70999f2eccabb668d (diff)
downloadvdr-plugin-muggle-0fbbb6071648d47c75d14eb1075bf6f5c85349cc.tar.gz
vdr-plugin-muggle-0fbbb6071648d47c75d14eb1075bf6f5c85349cc.tar.bz2
fix many memory leaks, add missing copy constructor to mgOrder
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@478 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/mg_order.h')
-rw-r--r--muggle-plugin/mg_order.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/muggle-plugin/mg_order.h b/muggle-plugin/mg_order.h
index 900b498..576f2c4 100644
--- a/muggle-plugin/mg_order.h
+++ b/muggle-plugin/mg_order.h
@@ -16,7 +16,7 @@ typedef list<string> strlist;
strlist& operator+=(strlist&a, strlist b);
-static const string EMPTY = "XNICHTGESETZTX";
+extern const char * EMPTY;
//! \brief adds string n to string s, using string sep to separate them
string& addsep (string & s, string sep, string n);
@@ -137,17 +137,19 @@ const unsigned int MaxKeys = 20;
class mgOrder {
public:
mgOrder();
+ mgOrder(const mgOrder &from);
mgOrder(mgValmap& nv, char *prefix);
mgOrder(vector<mgKeyTypes> kt);
+ ~mgOrder();
+ void InitFrom(const mgOrder &from);
void setDB(MYSQL *db);
mgParts Parts(unsigned int level,bool orderby=true) const;
const mgOrder& operator=(const mgOrder& from);
- mgOrder& operator+=(mgKey* k);
mgKey*& operator[](unsigned int idx);
unsigned int size() const { return Keys.size(); }
void truncate(unsigned int i);
bool empty() const { return Keys.empty(); }
- void clear() { Keys.clear();}
+ void clear();
void clean();
mgKey* Key(unsigned int idx) const;
mgKey* find(const mgKeyTypes kt) ;