summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)AuthorFilesLines
2015-01-20Some more loplugin:cstylecast: shellStephan Bergmann1-2/+2
Change-Id: I8d9846dcfd8b0f686f7321a3e7b7b0d70428723d
2015-01-19try to fix GetVersionEx deprecation warnings from Windows SDK 8.1Michael Stahl3-0/+15
Apparently GetVersionEx() is deprecated now, but the replacement header "versionhelpers.h" does not exist in older SDKs (at least not in 8.0), so try to determine the used SDK version by checking if the Windows 8.1 version constant _WIN32_WINNT_WINBLUE (0x0602) exists. http://msdn.microsoft.com/en-us/library/windows/desktop/dn424972%28v=vs.85%29.aspx Change-Id: Ia9224a8c76823ada7cb294a600046c6a0fc843ad Reviewed-on: https://gerrit.libreoffice.org/14020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin2-8/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-05spelling: attachement -> attachmentNoel Grandin2-6/+6
Change-Id: I1bb1ad04adec864b594d96711f85b8fcdc1d1ef2
2014-12-23fdo#39440 reduce scope of local variablesMichael Weghorn1-2/+1
This addresses some cppcheck warnings. Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5 Reviewed-on: https://gerrit.libreoffice.org/13608 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-18shell: Use appropriate OUString functions on string constantsStephan Bergmann3-6/+6
Change-Id: I3b2c0a4200fa953162f40eff49289052962e73d2
2014-12-15shell: Use appropriate OUString functions on string constantsStephan Bergmann1-14/+14
Change-Id: I2647295383085abf8f217693531ef82632eb4c52
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl3-2/+5
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17give all the open-url scripts the same starting permissionsCaolán McNamara2-0/+0
Change-Id: I35fcb2d73accf20baa96b62d99be6d0a3ebb3ba2
2014-11-17drop gnome-open-url binaryCaolán McNamara4-142/+2
we don't really need it anymore, fallback to our own open-url if there is nothing else to take it Change-Id: I7a4e841a53bda30e29d48b9c34d24af085f1b4b5 Related: coverity#706194 Use of untrusted string value
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-0/+2
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-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini1-1/+1
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-11O_RDWR and O_CREAT are defined in fcntl.hRichard PALO1-1/+1
Change-Id: I568ee2c3f103777720f6c39340a5915b10aeebb4 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2014-11-11Do as for Linux, borrowed from Gabriele Bulfon <gabriele.bulfon at sonicle.com>Richard PALO1-0/+8
Change-Id: Id15c4b355591678023ae97b1183f8f3a01823084 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2014-11-10that stuff seems to be totally unusedMarkus Mohrhard2-18/+0
Change-Id: Ice7bc99fc5f3d26ced1b7cd5a1dbf29b0e635471
2014-11-07Don't add toolkit related shell packages with headless buildRiccardo Magliocchetti1-0/+2
Change-Id: Ib68bf02ef7065c76ff25f36b8c29a9a4b028b2e0 Reviewed-on: https://gerrit.libreoffice.org/12268 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2-5/+6
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06fdo#82038: senddoc, uri-encode got lost on MacStephan Bergmann1-1/+1
Change-Id: I2f104c64601b22ce3ef078295c7da3cb21a133f9
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin2-6/+5
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-10-31scp2: move unix/gnome executables to AutoInstallMichael Stahl1-1/+1
Change-Id: I0e0c3b5e3f130093f430f47c1730580105718c1e
2014-10-31Removed duplicated includesAndrea Gelmini1-1/+0
Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin7-8/+1
It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-08back out more wrong and confusing tools::Time comment changesEike Rathke1-1/+1
Apparently fc04f76336fdf8c96e35382cdeb497e2f939705c used some sed script to change all ... Change-Id: Ie609bd02a2c5d70109fc6185cf4440480f29d8f5
2014-10-02shell (Windows): std::auto_ptr -> std::unique_ptrStephan Bergmann4-4/+4
Change-Id: I44c843c028c2dfcfcea9f6a2196440ca700fc3a8
2014-10-01shell: std::auto_ptr -> std::unique_ptrStephan Bergmann1-2/+2
Change-Id: I6fc7ef7438e1b999b3b65e4e661b9e787a66cf47
2014-10-01fdo#82577: Handle TimeNoel Grandin1-1/+1
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-18bnc#887307 ODF files not showing up on Windows searchAndras Timar1-1/+1
Under Windows 7, ODF and OpenOffice.org 1.1 files were not found, when the folder containing them was not indexed, and full text search was switched on. The problem did not occur under Windows 8. Apparently there is a bug in Windows 7, reading beyond the end of a BufferStream resulted in 0 bytes read. So we take care not to read beyond the end of stream. Change-Id: Id01b08922121dabbb7b49c54f8ef11cb0e4ac413
2014-09-11shell: sal_Bool -> boolStephan Bergmann2-2/+2
Change-Id: Ie4fedd95752aa1212481bff0cda7c0045956b361
2014-09-10Typo: (N|n)ormaly->(N|n)ormallyJulien Nabet1-1/+1
Change-Id: I96d081f394b0b62d99ec1034bf5e99da9aedd9d9
2014-08-28Fix *_component_getFactory function typeStephan Bergmann1-1/+1
Change-Id: I406e0b659f551f347a8fa9ae2a57ec7965ba7ea0
2014-08-28Fix some *_component_getFactory function typesStephan Bergmann2-4/+4
Change-Id: I8e7cc2d26df27e2eb48ddec53ea0a4f1d1381e23
2014-08-17remove executable bitsThomas Arnhold1-0/+0
Change-Id: Iec785ae538de81325812b1e6fe33115789b39770
2014-08-13warning C4505: unreferenced local function has been removedThomas Arnhold1-11/+0
Change-Id: I2b9b43c40a467dd369f1eeb3623be388c51d3b4d
2014-08-13warning C4189: local variable is initialized but not referencedThomas Arnhold1-0/+2
Change-Id: I83493466051649c9786cead0486e3112bf1eb5a4
2014-08-13warning C4296: '<' : expression is always falseThomas Arnhold1-2/+0
sread doesn't return negative values Change-Id: I72caa9abe7081b7d88e412510d70ec3810634af1
2014-08-11fdo#82038: Make sending email from LO work again on OS XTor Lillqvist1-2/+9
Do build the cmdmail library, the uri-encode executable and do install the senddoc script for OS X, too. Note that in order for it to work, one needs to set the "E-mail program" in Preferences:Internet:E-mail to /Applications/Mail.app. (Or possibly some other application and/or executable.) Change-Id: I5764c9891865983d46081edc854e321643c296cc
2014-08-08match va_start() with va_end()Takeshi Abe1-0/+1
Change-Id: I5c3c2570d6311f49da95bb80c0f9850f89970235
2014-07-17Fix FTBFS with TDE support enabledTimothy Pearson1-0/+5
Change-Id: Ib85371542c5d79ef69bc76f6aa388acdfd9dd849 Reviewed-on: https://gerrit.libreoffice.org/10348 Reviewed-by: Timothy Pearson <kb9vqf@pearsoncomputing.net> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-08Include <algorithm> for std::min() and max()Tor Lillqvist1-0/+2
Change-Id: I6a46e6466ab56aea14e16902cb51f9c3f088f30e
2014-06-24new compilerplugin returnbyrefNoel Grandin1-4/+4
Find places where we are returning a pointer to something, where we can be returning a reference. e.g. class A { struct X x; public X* getX() { return &x; } } which can be: public X& getX() { return x; } Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-17-Wstrict-prototypesStephan Bergmann1-1/+1
...no reason to not have it enabled for URE C include files and what little real C code is still left. (But note that Clang ignores that warning.) Change-Id: Ia6940f9f940a0c226e9b724331d65c9862ce32e6
2014-06-11the BSD family also uses gioBaptiste Daroussin1-1/+1
Change-Id: I75fb934e52beb2ab752df4c969aa2e10d4f5966e Reviewed-on: https://gerrit.libreoffice.org/9733 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin2-5/+1
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-06fixincludeguards: fix include guardsThomas Arnhold2-6/+10
Change-Id: Ie6e8d4272b0b1d0d2ce93bcbc2e818a9eac1a56b Reviewed-on: https://gerrit.libreoffice.org/9629 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-02fdo#68849: Add header guards to all include filesJens Carl1-0/+5
added header guards for directories basebmp/, chart2/, cppuhelper/, include/test/, io/test/, sax/test, shell/, writerfilter/, and xmlhelp/ Change-Id: I0e29a9b75c26d71f58aa98986b52f6d3b46015a6 Reviewed-on: https://gerrit.libreoffice.org/9615 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-29remove more unnecesary OUString constructor useNoel Grandin3-20/+18
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-29remove unnecessary NULL parameter passed to UNO ExceptionNoel Grandin2-4/+4
.. now that we have a default value for that parameter Change-Id: I54d6b0a0a01ce2f2e5168ada0c427424de0477bc
2014-05-22cppcheck: Variable 'i' is assigned a value that is never usedThomas Arnhold1-2/+0
Change-Id: I02e0f878e743576ebb3c80e3120fa1dc54e379ed
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2-6/+6
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-13Related fdo#60338: Do not use umask(3) in a MT programStephan Bergmann1-7/+6
Change-Id: Ie515201e44ad58faf623a04981e891c0b3f4a19d