summaryrefslogtreecommitdiffstats
path: root/src/image.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-03-03 13:46:44 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-03-03 13:46:44 +0100
commit2e02da046d3e56cdf4744f644af35ad07424f48b (patch)
treef2dcf353aa2338eae1c2ff2c41af971c580c2762 /src/image.cpp
parent3c13229d98167ae4ae0710d5eeef23fef5005bf0 (diff)
downloadtellico-2e02da046d3e56cdf4744f644af35ad07424f48b.tar.gz
tellico-2e02da046d3e56cdf4744f644af35ad07424f48b.zip
Update to upstream version 1.3.6
Diffstat (limited to 'src/image.cpp')
-rw-r--r--src/image.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.cpp b/src/image.cpp
index 8cb6fa4..cc015ae 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -14,6 +14,7 @@
#include "image.h"
#include "imagefactory.h"
#include "tellico_debug.h"
+#include "tellico_utils.h"
#include <kmdcodec.h>
#include <kpixmapio.h>
@@ -105,7 +106,7 @@ TQByteArray Image::byteArray(const TQImage& img_, const TQCString& outputFormat_
TQString Image::idClean(const TQString& id_) {
static const TQRegExp rx('[' + TQRegExp::escape(TQString::fromLatin1("/@<>#\"&%?={}|^~[]'`\\:+")) + ']');
TQString clean = id_;
- return clean.remove(rx);
+ return shareString(clean.remove(rx));
}
void Image::setID(const TQString& id_) {