diff options
Diffstat (limited to 'examples/tools/codecs')
-rw-r--r-- | examples/tools/codecs/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tools/codecs/mainwindow.cpp b/examples/tools/codecs/mainwindow.cpp index 8f3c94e3d5..4adff6da6e 100644 --- a/examples/tools/codecs/mainwindow.cpp +++ b/examples/tools/codecs/mainwindow.cpp @@ -99,7 +99,7 @@ void MainWindow::save() QByteArray codecName = action->data().toByteArray(); QTextStream out(&file); - out.setCodec(codecName); + out.setCodec(codecName.constData()); out << textEdit->toPlainText(); } } |