[Libreoffice-commits] libcdr.git: src/lib
David Tardon
dtardon at redhat.com
Tue Mar 27 08:26:50 UTC 2018
src/lib/CDRDocument.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 4d3c9a8ca4a0390965c2ebae4e263a4af566e206
Author: David Tardon <dtardon at redhat.com>
Date: Tue Mar 27 09:45:09 2018 +0200
ofz#7119 avoid setting ref to a temp. var.
Change-Id: I9f91a4e892867ce45f3bd0450ee323a45c42ecd3
diff --git a/src/lib/CDRDocument.cpp b/src/lib/CDRDocument.cpp
index 73a9527..a271090 100644
--- a/src/lib/CDRDocument.cpp
+++ b/src/lib/CDRDocument.cpp
@@ -116,8 +116,9 @@ CDRAPI bool libcdr::CDRDocument::parse(librevenge::RVNGInputStream *input_, libr
{
input->seek(0, librevenge::RVNG_SEEK_SET);
CDRParserState ps;
+ std::vector<std::unique_ptr<librevenge::RVNGInputStream>> dummyDataStreams;
CDRStylesCollector stylesCollector(ps);
- CDRParser stylesParser(std::vector<std::unique_ptr<librevenge::RVNGInputStream>>(), &stylesCollector);
+ CDRParser stylesParser(dummyDataStreams, &stylesCollector);
if (version >= 300)
retVal = stylesParser.parseRecords(input.get());
else
@@ -128,7 +129,7 @@ CDRAPI bool libcdr::CDRDocument::parse(librevenge::RVNGInputStream *input_, libr
{
input->seek(0, librevenge::RVNG_SEEK_SET);
CDRContentCollector contentCollector(ps, painter);
- CDRParser contentParser(std::vector<std::unique_ptr<librevenge::RVNGInputStream>>(), &contentCollector);
+ CDRParser contentParser(dummyDataStreams, &contentCollector);
if (version >= 300)
retVal = contentParser.parseRecords(input.get());
else
More information about the Libreoffice-commits
mailing list