summaryrefslogtreecommitdiff
path: root/onlineupdate
AgeCommit message (Collapse)AuthorFilesLines
2016-03-31onlineupdate: revert SAL_N_ELEMENTS changesMichael Stahl7-55/+56
It's not clear if the foreign code in onlineupdate is supposed to include sal headers, so revert the 2 changes from earlier today there. Change-Id: I604720b4bd4897204e354ec230582b0fd2036716
2016-03-31use SAL_N_ELEMENTS more widelyNoel Grandin6-55/+54
found using git grep -n 'sizeof.*/.*sizeof.*[0]' Change-Id: Icd4a6cc1ca8ec8ebd68e1701a02789c74cf0eb2a
2016-03-31use SAL_N_ELEMENTS in for loopsNoel Grandin1-1/+1
for with git grep -n 'for.*sizeof' Change-Id: I6211024385e03ac5eeeb38690d2c1c699e015c2f Reviewed-on: https://gerrit.libreoffice.org/23569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-14Revert "tdf#98602 Duplicate code in onlineupdate/"Jan Holesovsky11-32/+1466
Unfortunately needs more work, I've pushed it too early... This reverts commit e60506acc53098b4b479d565048c316562657cec.
2016-03-14tdf#98602 Duplicate code in onlineupdate/Ras-al-Ghul11-1466/+32
Converted libmar into static library and removed duplicated code Change-Id: I6a6c8ce24103a400e1835ccf7e6421024f5cec4b Reviewed-on: https://gerrit.libreoffice.org/23179 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2016-02-17use consistent #define checks for the Windows platformNoel Grandin35-99/+99
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-16use consistent #define checks for the Windows platformNoel Grandin4-4/+4
stage 1 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f Reviewed-on: https://gerrit.libreoffice.org/22390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-09Remove excess newlinesChris Sherlock1-1/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09Formatting changes across all modulesChris Sherlock1-2/+0
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-05Fix typosAndrea Gelmini4-5/+5
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10Fix typosAndrea Gelmini6-7/+7
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08cppcheck: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: If1ddb112c85f127295eb55566360b066e7173ba2 Reviewed-on: https://gerrit.libreoffice.org/21245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-01-06onlineupdate: linking libpthread should work better than including itMichael Stahl1-11/+1
Change-Id: Ib19a5651f7e30108e8fbcdc6f7924c47cbeb4434
2016-01-06onlineupdate: Executable_updater should decide which GTK it wants to useMichael Stahl1-5/+0
Using both GTK2 and GTK3 sounds like a recipe for disaster, so use gtk2 for now (since we get numerous deprecation warnings with gtk3). Change-Id: I32a27c3620503b6c5d7d81510137bfddc5abb05c
2015-11-04onlineupdate: -Werror=unused-but-set-variableMichael Stahl2-6/+4
Change-Id: I136eb25d2831cdbd3f1ce81714039cbd28b16577
2015-11-04onlineupdate: -Werror=unused-variableMichael Stahl2-0/+4
There are actually 2 identical copies of the file in onlineupdate! WTF? Change-Id: I967bd90045ca0f56db151dd82d3baf8e848a8863
2015-11-04onlineupdate: error: statement with no effectMichael Stahl1-0/+3
Actually enable NSS on non-WNT/Mac platforms. Change-Id: Ib465d0175878bc2846a4d779b3b34ca57e55462e
2015-10-12cppcheck:variableScopeNoel Grandin5-8/+5
Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-30Fix typosAndrea Gelmini4-8/+8
Change-Id: I013414cf10e25acd5216643855aaa230258a1b5f Reviewed-on: https://gerrit.libreoffice.org/18962 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-18Fix typosAndrea Gelmini1-1/+1
Change-Id: I021589aeca9ef6bceb1c828c2197f5ff58f85b09 Reviewed-on: https://gerrit.libreoffice.org/18707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-08-23tdf#39440 cppcheck: redundantAssignmentMichael Weghorn1-2/+1
This addresses some of cppcheck's "redundantAssignment" warnings ("Variable '<varName>' is reassigned a value before the old one has been used"). Change-Id: I8fd2950d5aa1a3f4bd9e1c4c336abe465d1f657e Reviewed-on: https://gerrit.libreoffice.org/17926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-22tdf#39440 reduce scope of local variablesMichael Weghorn2-3/+3
This addresses some cppcheck warnings. Change-Id: I6ab170c4426494ab9fc53017f88e47fbfdbd9aad Reviewed-on: https://gerrit.libreoffice.org/17920 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-12Add the needed #ifndef instead of removing the variable.Jan Holesovsky1-0/+3
This reverts commit 058c924c9385d003eefa728be7b23b2effd73913. Change-Id: I0418af18177cef350b2bf13008ed54336c54938c
2015-08-11cppcheck: uninitMemberVarCaolán McNamara1-1/+3
Change-Id: I78acdab89764a27291ca05b0bb1d448608202208
2015-08-10cppcheck: arrayIndexThenCheckCaolán McNamara1-1/+1
Change-Id: I66dc4dd095d4e1a9d963b1c2c6a99b16d9f9bf61
2015-08-10cppcheck: unusedVariableCaolán McNamara1-1/+0
Change-Id: I11e9a952fdb401e08d6095fc36f0eb2dba6e2917
2015-08-03remove some unused typedefsNoel Grandin1-4/+0
Change-Id: I98c1e7eaa66b7afb05255a017a3de54714637501 Reviewed-on: https://gerrit.libreoffice.org/17491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-27remove some unused definesNoel Grandin1-6/+0
Change-Id: Ib2d50e8c29ccbc5ffcb52cdff4ae3eaae9a62188 Reviewed-on: https://gerrit.libreoffice.org/17332 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-22online update: Fix many warnings.Jan Holesovsky11-26/+29
Not all yet, though. Change-Id: Ic4f0fe3ded31d585faefd8bda8ab87f54b88dc6c
2015-07-22online update tdf#68274: fix --enable-online-update=mar on WindowsNathan Yee33-59/+2875
Change-Id: I397566ae2488799399cad361b24a281d3599cc5b
2015-07-03online update: Make the 'updater' build & link at least on Linux.Jan Holesovsky2-17/+1
Works with the non-system bzip2; the --with-system case might still need some love - but then again, distros want to have the online update switched off anyway... Change-Id: I26a27aec07a8f1aac22a4d14a38fb5b833550ea7
2015-07-03online update: Add the bzip2 external.Nathan Yee1-4/+1
Change-Id: Id7547390c49c0bcf672eb1a9863fc236518bfa49
2015-07-03online update: Remove unneeded files.Nathan Yee10-517/+2
Change-Id: Id69448d893f7492e7321c6c6f84d6cccc9024220
2015-06-29online update: Configure switch --enable-online-update=marJan Holesovsky2-8/+2
This will enable the mar-based online update instead of the 'traditional' one. At the moment, this does not build, as libbz2 was not packaged as an external library yet. Change-Id: I1ad7d9adf7a12a427786682ad932597eb2319256
2015-06-29online update: Add updater executable build supportNathan Yee41-88/+4766
Change-Id: I033f114d29cd020b6dba5a74257d3f577dd73ea7
2015-06-29online update: Add mar executable build supportNathan Yee13-26/+2580
Remove unneeded mar library build support Add macro workarounds in mar.c; will deal with them in the future Change PL_strdup to strdup (is this safe?) Change-Id: Ib3108abdf360f6fc1ccc1bf5030df8529d724b82
2015-06-29online update: Add preliminary support for creating MAR librariesNathan Yee3-0/+54
Change-Id: I04040d67b82afc0f00558d493ee046c97001cd5d
2015-06-29online update: MAR-based online update - initial import from Mozilla.Jan Holesovsky82-0/+13176
This commit copies several source files around the Mozilla's online update from the Mozilla sources to LibreOffice. The hope is that we will be able to modify it so that LibreOffice can use the same update mechanism as Firefox, including downloading the packs on background, and applying them on the next start. changeset: 248917:ce863f9d8864 The following locations in the Mozzila sources were copied: firefox/modules/libmar -> onlineupdate/source/libmar firefox/toolkit/mozapps/update -> onlineupdate/source/update JavaScript parts were omitted. Change-Id: I0c92dc0bf734bfd5d8746822f674e162d64fa62f