From 711f2ddf8cd7a4c75f609e87729d3dbf89ca60db Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 14 Nov 2013 17:58:09 -0800 Subject: Avoid std::string: QByteArray is enough and already compiled in No need to add more code to Subsurface by bringing in std::string too. Signed-off-by: Thiago Macieira Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 +- qt-ui/mainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 57fae2955..ec8cac044 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -590,5 +590,5 @@ void DiveListView::exportSelectedDivesAsUDDF() filename = QFileDialog::getSaveFileName(this, tr("Save File as"), fi.absolutePath(), tr("UDDF files (*.uddf *.UDDF)")); if (!filename.isNull() && !filename.isEmpty()) - export_dives_uddf((const char *)filename.toStdString().c_str(), true); + export_dives_uddf(filename.toUtf8(), true); } diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index b528ea194..f2f7112e0 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -181,7 +181,7 @@ void MainWindow::on_actionExportUDDF_triggered() QString filename = QFileDialog::getSaveFileName(this, tr("Save File as"), fi.absolutePath(), tr("UDDF files (*.uddf *.UDDF)")); if (!filename.isNull() && !filename.isEmpty()) - export_dives_uddf((const char *)filename.toStdString().c_str(), false); + export_dives_uddf(filename.toUtf8(), false); } void MainWindow::on_actionPrint_triggered() -- cgit v1.2.3-70-g09d2