diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-01 13:10:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-01 13:25:08 +0000 |
commit | 9bdec0831afc45af45ea6d9350ef3372188b45cb (patch) | |
tree | 9f761fe2589569a7cd0fbafd6e5fcc4d350d4d64 /svgio | |
parent | 49c7bc5af291dbf6b34bcea82c9c0513f65b308b (diff) |
loplugin:oncevar in sd..svgio
Change-Id: I58565460fcc3279c9771c6e1272d0af540b2c87c
Reviewed-on: https://gerrit.libreoffice.org/30459
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 6 |
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); |