summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextodfwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qtextodfwriter.cpp')
-rw-r--r--src/gui/text/qtextodfwriter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gui/text/qtextodfwriter.cpp b/src/gui/text/qtextodfwriter.cpp
index be13615aa6..1613fa201c 100644
--- a/src/gui/text/qtextodfwriter.cpp
+++ b/src/gui/text/qtextodfwriter.cpp
@@ -998,7 +998,6 @@ QTextOdfWriter::QTextOdfWriter(const QTextDocument &document, QIODevice *device)
m_document(&document),
m_device(device),
m_strategy(nullptr),
- m_codec(nullptr),
m_createArchive(true)
{
}
@@ -1015,10 +1014,6 @@ bool QTextOdfWriter::writeAll()
return false;
}
QXmlStreamWriter writer(m_strategy->contentStream);
-#if QT_CONFIG(textcodec)
- if (m_codec)
- writer.setCodec(m_codec);
-#endif
// prettyfy
writer.setAutoFormatting(true);
writer.setAutoFormattingIndent(2);