summaryrefslogtreecommitdiff
path: root/package
AgeCommit message (Collapse)Author
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage
Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-05Updated all precompiled headers.Ashod Nakashian
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-26Visible function type RTTI for Clang -fsanitize=functionStephan Bergmann
...by adding some further SAL_DLLPUBLIC_RTTI type annotations (cf. b4f6b26b5a1a78fecfa95ec2eb7ac8b80495d8aa "SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVM") and by making sure relevant function types do not use incomplete types in their parameter and return types (which would make the RTTI hidden). Change-Id: Id7aadcbc0704b9759968ae36266fc9ce11a2e340
2015-01-20Some more loplugin:cstylecast: packageStephan Bergmann
Change-Id: Icf7351082cf63aeb70ec47a8562a89d452ae9d8e
2015-01-15remove unnecessary castsNoel Grandin
leftovers from conversion of SvStream operator>> to Write methods Change-Id: Id1d1e60ae42afb689910845a3c6ec75e3388fb56
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-04cppcheck: Possible inefficient checking for <var> emptinessJulien Nabet
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
2015-01-02Fix simple typos.Andrea Gelmini
Change-Id: I1fdbe47ed7a6e05d2cf20f4c296bffad4bbc6599 Reviewed-on: https://gerrit.libreoffice.org/13719 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-02include algorithmCaolán McNamara
Change-Id: I55abf17a1da2616ca2b1303747ca8cc7e402634e
2015-01-02include algorithmCaolán McNamara
Change-Id: Icd44b7c128bf72236206d7c753a9ef986f50dad2
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-19fdo#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: Idcedd908c653d5a5700884f233ad134dde8be018 Reviewed-on: https://gerrit.libreoffice.org/13540 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-18comphelper: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Id1d5c3cf2f76dbb33606cec1c0f17d4a1f282247
2014-12-15fdo#87210: Re-enable parallel deflate, which was not the root cause.Kohei Yoshida
With f92183833fa569006602ac7e93c906d2094e0d4d, export no longer crashes, and there is no reason to leave this piece disabled any more. Let's re-enable this. Change-Id: Ibeca8869f152cbcd80f1dcb55f8199110125741d
2014-12-15package: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I8d01dbad13cf26473c03d0c3dd01ae7baca991fb
2014-12-14package: Better to use temporary files for huge memory zip streamsMatúš Kukan
ZipPackageBuffer was holding the whole compressed data stream in one uno::Sequence which seems to be a lot for big documents in some cases. Change-Id: Ib10d00ac54df9674231f4bbf047fab7e9b0a7d45
2014-12-14package: Create memory buffer only when we need it - if we use parallelismMatúš Kukan
Otherwise write directly to the resulting zip file. Change-Id: I75097969f0cccf0b45da591c71221e5ae18668cb
2014-12-12callcatcher: remove newly unused codeCaolán McNamara
and rework reads to just return the read value Change-Id: I5d2f01064465c65859ec4ba031ec9dfa16403487
2014-12-11remove operator>> methodsNoel Grandin
in favour of ReadXXX methods. Change-Id: I242b92da7dbcafe22aef69dc7348ac58dadc9241
2014-12-10Globally disable threading for these for now.Kohei Yoshida
It doesn't win us much performance-wise (as it turned out), and causes weird crashers with large documents. Change-Id: I0566ce850b8f6656e6f9821c653b7a825a7874a3
2014-11-21coverity#1242675 Untrusted value as argumentCaolán McNamara
Change-Id: Id1f1ff8de23b041742d2a8286b78312529f6566e
2014-11-19coverity#1242675 Untrusted value as argumentCaolán McNamara
Change-Id: I1d8f32095f297919dc3ccab51093295f8c31707d
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-17package: Do not bother with deflating jpeg imagesMatúš Kukan
It takes a lot of time and we can save ~1% of size if at all. Rather store them uncompressed in the zip file. With png, we can save a bit more, although it's still only about 4% - 8%? Change-Id: I43a3e3812882e4ce85e7af9d0aaab454d98c4860
2014-11-17package: Do not deflate small streams in a threadMatúš Kukan
Change-Id: Iae804a34f344aa793a6d5c13315f7bc1eb64c0a2
2014-11-17ZipPackageStream::getRawData can be privateMatúš Kukan
Change-Id: I66cbbfb2aa6abc6c8ebe34d9ea69855436c23edd
2014-11-17Simplify input parameters to just take the sequenceMatúš Kukan
Change-Id: Ic2538ca8b0f7261064e1dfbf3884dd452003c797
2014-11-17package: Add possibility to disable deflating in a threadMatúš Kukan
Change-Id: I4d98b6f8b3315b731206700eb65f08463299dda3
2014-11-17package: Finally implement parallel zip entries deflatingMatúš Kukan
For that: 1, create ZipPackageStream::successfullyWritten to be called after the content is written 2, Do not take mutex when reading from WrapStreamForShare - threads should be using different streams anyway, but there is only one common mutex. :-/ Change-Id: I90303e49206b19454dd4141e24cc8be29c433045
2014-11-17package: Call writeLOC always after putNextEntry explicitlyMatúš Kukan
Preparation step to parallel deflating. Rename putNextEntry to setEntry and make it a static function. We need to call setEntry before starting thread but writeLOC after. Change-Id: I99a9ffa7dc4c18b47c621847b48bf8469bfb789a
2014-11-17package: Do not use hacky bit 1<<4 in ZipEntry::nFlagMatúš Kukan
Change-Id: I504f5c0c9aa9b655ffb53d9820a33677dad6aa08
2014-11-17There is no XZipOutputEntry interfaceMatúš Kukan
Change-Id: Ib8fa3351ba25416a13d6c8bf63bd5fc8e43703c5
2014-11-17package: Use memory stream for compressing zip entriesMatúš Kukan
Change-Id: Ibf81dc3cd8a9a9da3dfd6ee6e587a522c4d56a44
2014-11-17ZipOutputEntry: m_pCurrentEntry is always setMatúš Kukan
Change-Id: Ib6a69a83f4a378df838b2231b9eba7fba49cd9f1
2014-11-17package: Zipping STORED entry is the same as rawWrite and we don't encrypt itMatúš Kukan
Change-Id: Ie3f8ac261a70c9a2b5182fc7d36938d0a46ec045
2014-11-17package: Move most ZipOutputEntry's methods back to ZipOutputStreamMatúš Kukan
We want to use ZipOutputEntry only for deflating (and maybe rename it). ca13a9377e4a36436e4c82bb33648d0f3b6db6f5 was not a good idea because the data still needs to be written sequentially anyway. Otherwise it's hard to get offset positions of individual entries right. Since this commit rawCloseEntry needs to be called always; also when we use write&closeEntry because we don't call writeEXT in closeEntry anymore. Need to rename and add comments later. Change-Id: I03bd48ca6e108e6253a77a137746165909ca3c3d
2014-11-17ZipPackageFolder: releaseUpwardRef only calls clearParent, remove it.Matúš Kukan
Since commit 0c5bb3f42d38b3c16015dc0a45defd1b1dad4f92. Change-Id: I5511f9dc829aca42790f05cb8fb3ebd83b2acad4
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-04coverity#706578 uncaught exceptionDavid Tardon
Change-Id: I70640f42db49da274118f7336ff072b1b53ac640
2014-10-30coverity#706568 Uncaught exceptionCaolán McNamara
Change-Id: I05a7700b782d63654406139532a775173295ea9f
2014-10-30coverity#706569 Uncaught exceptionCaolán McNamara
Change-Id: I7c1245eacd92b5869e6dab0389ee0ca3cebd98da
2014-10-30OSL_ENSURE->assert when follow by deref of tested pointerCaolán McNamara
Change-Id: Ib703cb24619228c081c156c4ed52bf7b878fbedd
2014-10-30coverity#706582 Uncaught exceptionCaolán McNamara
Change-Id: I82fad3f152fe5a563675686accedb583d07d2b13
2014-10-30coverity#706583 Uncaught exceptionCaolán McNamara
Change-Id: I508eb91d7c32e8604525511c33c39471afd3ffbf
2014-10-30coverity#706584 Uncaught exceptionCaolán McNamara
Change-Id: I9521ed7d75cae1a1e90fd73dd7b8bd822ab4521f
2014-10-27coverity#706590 Uncaught exceptionCaolán McNamara
Change-Id: I2005b792c74ad5a5f58c831dcc7caa5134280890
2014-10-27cid#1249676 Uninitialized scalar fieldNoel Grandin
Change-Id: I87df4e9c1d3f36afccf13aebfd95d1b4f3bfa655
2014-10-24package: OInputCompStream::m_xStream is never nullMichael Stahl
... as proven by the un-checked dereference in the dispose() method called from the dtor; simplify based on that and assert in ctor. Change-Id: Id369b80bd89fa59d99b209796c33acb39cbb10f3