mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
66f5f32f11
commit
711f2ddf8c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue