QTfrontend/team.cpp
branchflibqtfrontend
changeset 8130 4cab13c82b4e
parent 8128 ebef2de30c18
child 8133 2d0f56423eb3
--- a/QTfrontend/team.cpp	Mon Nov 26 00:28:47 2012 +0400
+++ b/QTfrontend/team.cpp	Tue Nov 27 00:29:41 2012 +0400
@@ -221,7 +221,7 @@
 {
     free(m_team->name);
 
-    m_team->name = qstrdup(name.toUtf8().constData());
+    m_team->name = strdup(name.toUtf8().constData());
 }
 
 QString HWTeam::hedgehogName(int index) const
@@ -238,14 +238,14 @@
 {
     free(m_team->hogs[index].name);
 
-    m_team->hogs[index].name = qstrdup(name.toUtf8().constData());
+    m_team->hogs[index].name = strdup(name.toUtf8().constData());
 }
 
 void HWTeam::setHedgehogHat(int index, const QString & hat)
 {
     free(m_team->hogs[index].hat);
 
-    m_team->hogs[index].hat = qstrdup(hat.toUtf8().constData());
+    m_team->hogs[index].hat = strdup(hat.toUtf8().constData());
 }
 
 
@@ -296,7 +296,7 @@
 {
     free(m_team->bindings[idx].binding);
 
-    m_team->bindings[idx].binding = qstrdup(key.toUtf8().constData());
+    m_team->bindings[idx].binding = strdup(key.toUtf8().constData());
 }
 
 // flag
@@ -381,5 +381,5 @@
 
 flib_team * HWTeam::toFlibTeam()
 {
-    return m_team;
+    return flib_team_copy(m_team);
 }