summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgtools.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx
index 3ef273fe4e36..d78a121447be 100644
--- a/svgio/source/svgreader/svgtools.cxx
+++ b/svgio/source/svgreader/svgtools.cxx
@@ -1482,15 +1482,13 @@ namespace svgio
if(!rMimeType.isEmpty() && nPos < nLen)
{
- static const char aStrImage[] = "image";
-
- if(rMimeType.match(aStrImage, 0))
+ if(rMimeType.startsWith("image"))
{
// image data
OUString aData(rCandidate.copy(nPos));
static const char aStrBase64[] = "base64";
- if(aData.match(aStrBase64, 0))
+ if(aData.startsWith(aStrBase64))
{
// base64 encoded
nPos = strlen(aStrBase64);