summaryrefslogtreecommitdiff
path: root/package/inc
AgeCommit message (Collapse)Author
2015-09-15Resolves: tdf#88314 close temp file after each thread completedCaolán McNamara
Change-Id: Ic2eec30cfb5f61c53777eefeeb8bad6f552da2fc Reviewed-on: https://gerrit.libreoffice.org/17355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 458bf0812570f517dd4b80efbcfb7e0fca9479f7) Related: tdf#88314 delete temp files clear to close the inputstream before attempting to delete the temp file, which is plausible as the windows-specific failure in earlier attempts at this Change-Id: I751aa3a098dd960f56b77a5f5fc93783c1060556 Reviewed-on: https://gerrit.libreoffice.org/17531 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit ef698035aa2aa64fc4c4455b394e6782772fef4f) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-06-05uncaught exceptions in parallel deflate threads on re-export of HTB23106 odgsCaolán McNamara
Change-Id: Ib6aef478b8dcf1c7a7262ab60eef4d44da0de632 (cherry picked from commit 05661623c7e328c536814354bafd8294de0e9ee0)
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-09loplugin:staticmethodsNoel Grandin
Change-Id: Ie348778ea666c24e95e048386547f301083a0017
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-08brute-force find-and-remove of unused #define constants.Noel Grandin
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
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-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: 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-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-10-27coverity#706590 Uncaught exceptionCaolán McNamara
Change-Id: I2005b792c74ad5a5f58c831dcc7caa5134280890
2014-10-23Remove pointless functions now that saveChild() is ZipPackageStream's memberMatúš Kukan
Change-Id: Id43ec2e7ddb1035d3306170523764bb9a74c03b8
2014-10-23package: Add pure virtual ZipPackageEntry::saveChild()Matúš Kukan
..and adapt what needs to be changed. So that, we can kill at least some usages of horrible ContentInfo struct. Change-Id: I32d41f3b8ce2dfb65f0d1df18a540a3f67dcab6d
2014-10-23package: ZipPackageStream: prefix membersMatúš Kukan
Change-Id: I02a1c3189c6b52f4f539b0eaa8878985cae8b321
2014-10-23package: Add ZipOutputEntry to isolate deflating of streams.Matúš Kukan
Preparation commit for deflating streams in parallel. We still use the same single XOutputStream (ByteChucker :-) for sequential writing but this can now be changed more easily. Change-Id: Idf26cc2187461660e31ac2e12c4708e761596fb2
2014-10-23coverity#706585 Uncaught exceptionCaolán McNamara
Change-Id: Ic8d2963536b793f0a229901d9e13d8e54842d9b9
2014-10-23coverity#706586 Uncaught exceptionCaolán McNamara
Change-Id: I3ec05ae695428f92b7424295b6f2d3e833c6b162
2014-10-17coverity#706591 Uncaught exceptionCaolán McNamara
Change-Id: I9b705664c3814aea5c433526ad147a8ab11c2d0f
2014-10-10ZipOutputStream: No need to explicitly set default valuesMatúš Kukan
Change-Id: Ia3a20e0692e658d847e1b825fc97e32ac8a1854b
2014-10-10Split ZipPackageFolder::saveChild into two functionsMatúš Kukan
And make them static. Probably would be better to kill ContentInfo and add saveChild as pure virtual into ZipPackageEntry, from which are both ZipPackageFolder and ZipPackageStream inheriting. This will also create a bit more sensible call graph when profiling. Change-Id: If8151332cfa6359e8736c912b7a5633a9162ab36
2014-10-10package: ZipOutputStream: prefix membersMatúš Kukan
Change-Id: I9cc21ba87484560ec0db5424800dd67f80e00540
2014-10-10package: Add some 'const' and prefix membersMatúš Kukan
Change-Id: Id177c99ba8b91586cf61457ab2ef084af9c7f490
2014-08-13update_pchThomas Arnhold
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold
desktop: 1m51s -> 54s framework: 1m55s -> 1m04s package: 32s -> 16s sdext: 1m31s -> 47s svgio: 32s -> 15s uui: 49s -> 20s vbahelper: 1m44s -> 27s xmlscript: 15s -> 10s xmlsecurity: 45s -> 23s Change-Id: Ia437969c091bf877983ababc5ea2d044bbc0bee0
2014-04-22package: sal_Bool->boolNoel Grandin
Change-Id: I05dd5070d0618ef7539b26c7edcaf01b0a84732c
2014-04-19fixincludeguards.sh: packageThomas Arnhold
Change-Id: Ia66d825baad3315c34bd579dc804f607bc6be30b
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-10Use cppu::OImplementationId for XUnoTunnel IDsStephan Bergmann
Change-Id: I564ec761b7a7b3488682acfb3aff56beb3f68213
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-01-28bool improvementsStephan Bergmann
Change-Id: I5dfdb3a11737a2cb805ff44652c9ca502e5fc81b
2014-01-16Revert "impl. enumeration for ZipPackage"David Tardon
This reverts commit 5b2cca80eeb2c8ee210820cc8ed95e5d69214807. Also reverts commit 86a5053df0d755d10121d65c533f3d327340a0fd.
2014-01-16do not close input, unless it was us who opened itDavid Tardon
Change-Id: I6ffedd1e64e48b4fc4bd6f5eb63e96b49f1a8508
2014-01-15bahDavid Tardon
Change-Id: I0fd33c8ee1791714ee9b42f50cabbdc51ebe4440
2014-01-15impl. enumeration for ZipPackageDavid Tardon
Change-Id: I800d22d8ec99e943b59467cf64b96aaa1f797953
2013-07-31fdo#62475 removed pointless commentsJelle van der Waa
Change-Id: Ic3743e48ef9055933ff040c180561ef41b3a2990 Reviewed-on: https://gerrit.libreoffice.org/5174 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-26remove unused constAndras Timar
Change-Id: If7e998065390d89cc22556adcd727a63f6496aad
2013-05-08fdo#46808, Convert ZipFileAccess service to new styleNoel Grandin
Dropped XComponent from merged interface because noone is using it. Change-Id: Id22c49e63679f42d86f617a919fdfd7cea4d5381
2013-04-23execute move of global headersBjoern Michaelsen
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09