From 970a3220d0322f6bbb56bc0f35f9de1c3fb98050 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 8 Dec 2012 13:12:29 +0100 Subject: [PATCH] Fixed: Compilation with GCC --- .../leveldesign/georges_editor_qt/src/settings_dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ryzom/tools/leveldesign/georges_editor_qt/src/settings_dialog.cpp b/code/ryzom/tools/leveldesign/georges_editor_qt/src/settings_dialog.cpp index 66cd03937..bb4fafd2e 100644 --- a/code/ryzom/tools/leveldesign/georges_editor_qt/src/settings_dialog.cpp +++ b/code/ryzom/tools/leveldesign/georges_editor_qt/src/settings_dialog.cpp @@ -152,7 +152,7 @@ namespace NLQT QString oldLdPath = Modules::config().getValue("LeveldesignPath", std::string("")).c_str(); if (oldLdPath != ui.leveldesignPath->text()) { - std::string ldPath = ui.leveldesignPath->text().toUtf8(); + std::string ldPath = ui.leveldesignPath->text().toUtf8().constData(); Modules::config().getConfigFile().getVar("LeveldesignPath").forceAsString(ldPath); Q_EMIT ldPathChanged(ldPath.c_str()); // TODO: remove old Path from CPath @@ -171,8 +171,8 @@ namespace NLQT std::vector addList; for (sint i = 0; i < ui.pathsListWidget->count(); ++i) { - std::string str = ui.pathsListWidget->item(i)->text().toUtf8(); - if (str != "") + std::string str = ui.pathsListWidget->item(i)->text().toUtf8().constData(); + if (!str.empty()) { list.push_back(str); if (!sl.contains(str.c_str()))