diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-18 20:13:23 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-18 20:13:23 +0200 |
commit | 5eb938208e3ef0f9c2d8aecde27d03cd4564e255 (patch) | |
tree | 0b186abb7b29f62bdddf3a15091deb0a348ccbe8 /src/image.cpp | |
parent | 0c697cf4f9189055d5233ee58a4a9e69380bdb8e (diff) | |
download | tellico-5eb938208e3ef0f9c2d8aecde27d03cd4564e255.tar.gz tellico-5eb938208e3ef0f9c2d8aecde27d03cd4564e255.zip |
Fix build with KDE_DEFAULT_CXXFLAGS
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/image.cpp')
-rw-r--r-- | src/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |