summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-11-14 17:58:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-15 13:19:58 +0900
commit711f2ddf8cd7a4c75f609e87729d3dbf89ca60db (patch)
tree834376c77135b7bbeeb8ed451ceb658f3b3284c2 /qt-ui
parent66f5f32f1137be435611c9a229ccf413fed55782 (diff)
downloadsubsurface-711f2ddf8cd7a4c75f609e87729d3dbf89ca60db.tar.gz
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 <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divelistview.cpp2
-rw-r--r--qt-ui/mainwindow.cpp2
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()