From 02983d65b4ef312fd29584f83da76bb1622d3876 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Sat, 24 Nov 2018 21:53:16 +0100
Subject: [PATCH] Revert "revert to basic multi-result passing from function"

This reverts commit 3bf8afe5e0240521718e9ccd385025a7906ece19.
---
 alib2gui/src/Graphics/Dialogs/OutputDialog.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/alib2gui/src/Graphics/Dialogs/OutputDialog.cpp b/alib2gui/src/Graphics/Dialogs/OutputDialog.cpp
index afac41904a..57fa6bc311 100644
--- a/alib2gui/src/Graphics/Dialogs/OutputDialog.cpp
+++ b/alib2gui/src/Graphics/Dialogs/OutputDialog.cpp
@@ -48,12 +48,7 @@ void OutputDialog::hideTab(QWidget* tab) {
 }
 
 void OutputDialog::on_saveBtn_clicked() {
-//    auto [filter, extension] = this->getCurrentTabFileFilter(); //FIXME use when g++ on gitlab-ci supports it
-
-    std::pair<QString, QString> res = this->getCurrentTabFileFilter();
-    QString filter = res.first;
-    QString extension = res.second;
-
+    auto [filter, extension] = this->getCurrentTabFileFilter();
     QString filename(QFileDialog::getSaveFileName(this,
                                                   tr("Save file"),
                                                   QDir::homePath(),
-- 
GitLab