diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-01-04 12:51:06 -0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-07 09:29:09 +0000 |
commit | d6f25fdf04b6a235650ead537cc42d9a505243a4 (patch) | |
tree | ef2cfe28a5c4838c375359f925780188e6be6562 /avmedia | |
parent | 6eff6fae6272e8ed5d74553597bb4b73db3f2864 (diff) |
fdo#57950: Remove last chained appends from avmedia
Change-Id: I0906bf7493828c5923f3243c6849a2eca5f37bb0
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1548
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediaitem.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index 2776809d255a..05c29aa70dda 100644 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -470,11 +470,7 @@ bool EmbedMedia(uno::Reference<frame::XModel> const& xModel, xTransaction->commit(); } - OUStringBuffer buf("vnd.sun.star.Package:"); - buf.append(media); - buf.append(sal_Unicode('/')); - buf.append(filename); - o_rEmbeddedURL = buf.makeStringAndClear(); + o_rEmbeddedURL = "vnd.sun.star.Package:" + media + "/" + filename; return true; } catch (uno::Exception const&) |