[Libreoffice-commits] .: avmedia/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 7 01:29:28 PST 2013
avmedia/source/framework/mediaitem.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit d6f25fdf04b6a235650ead537cc42d9a505243a4
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date: Fri Jan 4 12:51:06 2013 -0200
fdo#57950: Remove last chained appends from avmedia
Change-Id: I0906bf7493828c5923f3243c6849a2eca5f37bb0
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1548
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Tested-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index 2776809..05c29aa 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&)
More information about the Libreoffice-commits
mailing list