aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
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/mainwindow.cpp
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/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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()