Commit 6ef17493 authored by Albert Astals Cid's avatar Albert Astals Cid

JpegWriter: Use the C++11 cascading constructors

parent 0b4ad184
......@@ -9,7 +9,7 @@
// Copyright (C) 2010 Harry Roberts <harry.roberts@midnight-labs.org>
// Copyright (C) 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2013 Peter Breitenlohner <peb@mppmu.mpg.de>
// Copyright (C) 2017 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2017, 2018 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2018 Martin Packman <gzlist@googlemail.com>
//
//========================================================================
......@@ -54,12 +54,8 @@ JpegWriter::JpegWriter(int q, bool p, Format formatA)
}
JpegWriter::JpegWriter(Format formatA)
: JpegWriter(-1, false, formatA)
{
priv = new JpegWriterPrivate;
priv->progressive = false;
priv->optimize = false;
priv->quality = -1;
priv->format = formatA;
}
JpegWriter::~JpegWriter()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment