From c82b0c25d8f6e346a8e22e9b11015a6d920b04c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 18:07:28 +0200 Subject: [PATCH] Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/mainwidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp index 19833ee..7c29c3c 100644 --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -158,8 +158,8 @@ void MainWidget::fileSave() { if(salva) { m_outputFilename=saveFilename; - ifstream in(m_tmpFilename); - ofstream out(m_outputFilename); + ifstream in(m_tmpFilename.local8Bit()); + ofstream out(m_outputFilename.local8Bit()); if(!in || !out) { emit signalChangeStatusbar(i18n(i18n("Error while saving file"))); @@ -179,8 +179,8 @@ void MainWidget::fileSave() { } else if (m_changed) { - ifstream in(m_tmpFilename); - ofstream out(m_outputFilename); + ifstream in(m_tmpFilename.local8Bit()); + ofstream out(m_outputFilename.local8Bit()); if(!in || !out) { emit signalChangeStatusbar(i18n("Error while saving file")); @@ -244,8 +244,8 @@ void MainWidget::fileSaveAs() { if(salva) { m_outputFilename=saveFilename; - ifstream in(m_tmpFilename); - ofstream out(m_outputFilename); + ifstream in(m_tmpFilename.local8Bit()); + ofstream out(m_outputFilename.local8Bit()); if(!in || !out) { emit signalChangeStatusbar(i18n("Error while saving file"));