From 5eb938208e3ef0f9c2d8aecde27d03cd4564e255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 18 Sep 2016 20:13:23 +0200 Subject: Fix build with KDE_DEFAULT_CXXFLAGS 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/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/image.cpp') diff --git a/src/image.cpp b/src/image.cpp index cc015ae..56473b5 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -46,12 +46,12 @@ Image::Image(const TQString& filename_) : TQImage(filename_), m_linkOnly(false) calculateID(); } -Image::Image(const TQImage& img_, const TQString& format_) : TQImage(img_), m_format(format_), m_linkOnly(false) { +Image::Image(const TQImage& img_, const TQString& format_) : TQImage(img_), m_format(format_.ascii()), m_linkOnly(false) { calculateID(); } Image::Image(const TQByteArray& data_, const TQString& format_, const TQString& id_) - : TQImage(data_), m_id(idClean(id_)), m_format(format_), m_linkOnly(false) { + : TQImage(data_), m_id(idClean(id_)), m_format(format_.ascii()), m_linkOnly(false) { if(isNull()) { m_id = TQString(); } -- cgit v1.2.1