From d6f25fdf04b6a235650ead537cc42d9a505243a4 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Fri, 4 Jan 2013 12:51:06 -0200 Subject: fdo#57950: Remove last chained appends from avmedia Change-Id: I0906bf7493828c5923f3243c6849a2eca5f37bb0 Signed-off-by: Marcos Paulo de Souza Reviewed-on: https://gerrit.libreoffice.org/1548 Reviewed-by: Miklos Vajna Tested-by: Miklos Vajna --- avmedia/source/framework/mediaitem.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'avmedia') 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 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&) -- cgit