Commit a6f2c4cf authored by Mathieu Faverge's avatar Mathieu Faverge

Apply patch 99 from issue #13 - Fix distribution plugin

parent be838038
......@@ -96,7 +96,7 @@ private:
it != children->end();
it ++) {
// We create the node and we do the recursivity
std::string name = (*it)->get_name().to_string();
const std::string &name = (*it)->get_name();
QStringList temp(QString::fromStdString(name));
QTreeWidgetItem *current_node = new QTreeWidgetItem((QTreeWidgetItem *)root_node, temp);
......@@ -116,7 +116,7 @@ private:
QFlags<Qt::ItemFlag> flg=Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsTristate;
for (std::list<Container *>::const_iterator it = root_containers->begin(); it != root_containers->end(); it++) {
std::string name = (*it)->get_name().to_string();
const std::string &name = (*it)->get_name();
QStringList temp(QString::fromStdString(name));
QTreeWidgetItem *current_node = new QTreeWidgetItem((QTreeWidgetItem *)0, temp);
......@@ -188,7 +188,7 @@ private:
str = "";
}
std::string name = container->get_name().to_string();
const std::string &name = container->get_name();
str.append(name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment