summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-09-03 18:07:28 +0200
committerSlávek Banko <[email protected]>2016-09-03 18:07:40 +0200
commit98bc111e75c8091711c4c332a6dd476218d35e06 (patch)
tree53f7effcb80eadb17426269c72f60aeb5d6190aa
parent531fccdc5e5b083fa40c5a99a26c3428536455ab (diff)
downloadpotracegui-98bc111e75c8091711c4c332a6dd476218d35e06.tar.gz
potracegui-98bc111e75c8091711c4c332a6dd476218d35e06.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c82b0c25d8f6e346a8e22e9b11015a6d920b04c1)
-rw-r--r--src/mainwidget.cpp12
1 files 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"));