Commit graph

134 commits

Author SHA1 Message Date
Norbert Thiebaud
e5b2edfb93 coverity#982969 Resource leak
Change-Id: Iabf637be4b704de4165c5cefb6a19687a1b5637a
Reviewed-on: https://gerrit.libreoffice.org/3902
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-05-14 13:37:36 +00:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Stephan Bergmann
1c2862e8d1 Remove residue of undocumented "edition" feature
...whereby some branding could be orverridden with information from a program/edition/
directory.

Change-Id: I7f9324678b09bc8069775dfcbda97be8e0618a91
2013-04-29 10:27:29 +02:00
Thomas Arnhold
2094610175 namespacing cleanup
Change-Id: I1384bf53a29e174bb97db4c0644f9dce39c0e36d
2013-04-28 10:36:51 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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
2013-04-07 14:23:11 +02:00
Tor Lillqvist
0ac88c0bbc WaE: macro is not used: USE_LIBPNG
Change-Id: I900d4957d964332ef97cb389d17206438f94743c
2013-03-27 13:07:17 +02:00
Thomas Arnhold
71907bb06a -Wunused-macros
Change-Id: Ia147a72a4bbd5cec45a2a74b721a81ff8c4340c2
2013-03-27 11:49:57 +01:00
Thomas Arnhold
5bb4a2ba1d further OUString cleanup
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +01:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex:

s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms

Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 09:00:26 +00:00
Tor Lillqvist
28b0168b42 No namespace desktop visible or needed in this source file any more
Change-Id: Id8174bd2bd50afa510ff60dcca63d8c560769f61
2013-03-12 14:31:38 +02:00
Tor Lillqvist
221b845d01 Need relative path to where exithelper.h is
Change-Id: If503e364700428ec3eac3d6f86e0388860cec10d
2013-03-12 14:03:09 +02:00
Tor Lillqvist
ecdd44e8f5 Use symbolic names instead of magic literal constants
We use tons of plain C-style #defines to give symbolic names to constants all
over the place already, in headers used from C++ code only. So why in this
rare case where the symbolic names for some constants actually would be needed
from a C source file, too, here then we define them inside a C++ class?

Change-Id: I45726fe42687779724c45a1e2b118cc7a1debcf1
2013-03-12 13:47:33 +02:00
Thomas Arnhold
4f4e4e40f5 loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-25 17:59:40 +01:00
Julien Nabet
fcf3758c92 Fix typo "fuction" -> "function"
Change-Id: I369da2262d42fbc7cc3cfeeef4920606522237cd
2013-02-23 16:47:15 +01:00
Eike Rathke
5fa05c96d6 added comment about language tags
Change-Id: If5a64f7e2b3ad0ad62733ea7e1a0c958ef6a7cd1
2013-02-18 20:07:05 +01:00
Stephan Bergmann
2fcba16dc4 Never pass -env: arguments across OfficeIPC connection
Change-Id: I1874ad0542bc8dcbe9ec588599a054030fd5d7d8
2013-01-18 16:55:04 +01:00
Pierre-Eric Pelloux-Prayer
0dce7eae55 startup: more reliable startup of multiple instances
Until now, when a new soffice instance (S2) started and tried to
connect to an existing soffice process (S1), S2 may have failed to
boostrap due to race condition in communication over the shared pipe.

S1 can be shutdown after S2 connected to it but _before_ S1 handled its
arguments (code run after 'accept' method in OfficeIPCThread).
This patch introduces a new message, sent by the main soffice after it
has called accept if and only if it's not shutting down (see mbDowning
 member).
The other soffice waits for this message before enabling going in
 PIPE_CONNECTED mode. If soffice fails to receive this message, pipe mode is
left unchanged and after a quick pause, it will try again.

Change-Id: I2e099a5804e1e8dd535cfd31ef454cffa44efa62
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-12-13 11:16:12 +01:00
Stephan Bergmann
c2500a004d -Werror=unused-parameter
Change-Id: If1aad98965a90ac6b2e5488f21fe0d84c9b4af47
2012-12-03 13:33:52 +01:00
Caolán McNamara
3f2f4f15e2 loplugin: fixed busted indent
Change-Id: I47180d899701de5436e518bebcf82620f4ce9669
2012-11-20 16:47:32 +00:00
Michael Meeks
daeed90f45 re-base on ALv2 code. Includes:
Patch contributed by: Jurgen Schmidt
    remove onlineregistration with dependencies
    http://svn.apache.org/viewvc?view=revision&revision=1240245
    imported patch package_eventlistener.patch
    http://svn.apache.org/viewvc?view=revision&revision=1172103

    Patch contributed by Pedro Giffuni
    Accept Google Chrome OS fonts as equivalent to MS fonts.
    http://svn.apache.org/viewvc?view=revision&revision=1233155
    http://svn.apache.org/viewvc?view=revision&revision=1233408

    Patch contributed by Andre Fischer
    Do not add targets for junit tests when junit is disabled.
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i114600#: remove forbidden characters
    from list of unencoded characters
    http://svn.apache.org/viewvc?view=revision&revision=1172370

    Patches contributed by Oliver Rainer-Wittman
    some clean up in JPEGReader due to memory constraints
    http://svn.apache.org/viewvc?view=revision&revision=1299729
    119114 - method <UpdateDialog::addSpecificError(..)> - create
    entry with correct type
    http://svn.apache.org/viewvc?view=revision&revision=1305265

    Patches contributed by Ariel Constenla-Haile
    i118707 - make toolbar control's popup window grab focus
    http://svn.apache.org/viewvc?view=revision&revision=1225846

    Patches contributed by Herbert Duerr
    #i118662# remove usage of BerkeleyDB in desktop module
    http://svn.apache.org/viewvc?view=revision&revision=1213171
    minor cleanups in dp_persmap.*
    http://svn.apache.org/viewvc?view=revision&revision=1215064
    flush early to prevent problem with extension manager not
    cleaning up its objects
    http://svn.apache.org/viewvc?view=revision&revision=1228147
    i118726 do not flush *pmap file while reading it
    http://svn.apache.org/viewvc?view=revision&revision=1230614
    #i119048# migrate BDB extension entries using a simple heuristic
    http://svn.apache.org/viewvc?view=revision&revision=1300972
    #i119048# handle edge cases when importing BDB hash files
    http://svn.apache.org/viewvc?view=revision&revision=1301428
    #i119113# fix of-by-one when importing BDB files
    http://svn.apache.org/viewvc?view=revision&revision=1305420

restore our encryption settings, icon themes, and dictionaries.
removed wrapper hacks, kill obsolete bundled extension blob /
pre-registration handling, remove duplicated quickstart code.
remove OS/2 conditionals.
2012-11-19 17:44:55 +00:00
David Tardon
81649fdf41 drop unused includes
Change-Id: Id061f9bc09e791308ebcc908092f921a2b309566
2012-10-10 17:26:52 +02:00
Stephan Bergmann
f4a4ba9ac1 Clean up option processing
* Support --version on non-UNX, too.

* Consistently show the first unknown option and the help blob in the presence
  of any unknown options.

* There is no need to tunnel --help/--version past oosplash in the soffice
  script, as oosplash is prepared to treat them adequately (esp. not pass them
  over any pipe); this only added unnecessary variance to what spellings exactly
  are supported and how mixtures of --help, --version, and unknown options are
  handled.

Change-Id: I617f2e727e2f0eafd34a2de3b85d441c6783ec4f
2012-09-26 11:30:35 +02:00
Stephan Bergmann
b247950eee Properly check cmdline args in oosplash
...so that e.g. --headless (starting with a "h") is not also mistaken as -h and
disables pagein and javaldx.

Change-Id: I8a7b2b0373d96ec586975e07e17e7eabe201dcd0
2012-09-21 13:35:32 +02:00
Stephan Bergmann
5c804dce94 deb#681185: wait for InternalIPC::ProcessingDone in oosplash
Change-Id: I9606ec34ad0d8d24dca71d060bf5e1d37152903c
2012-09-06 12:44:17 +02:00
David Tardon
0fa47c8614 coverity: ensure the string is null-terminated
Change-Id: Iaaa0e60ca99e2beef7c70d38343917c4549d1eea
2012-07-03 17:47:19 +02:00
Thomas Arnhold
278000a28b Remove unused defines
Some of them were commented out for documentation purpose.

Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02 17:46:25 +02:00
Michael Stahl
f92d22565d oosplash: improve signal handlers:
- global variable should be volatile
- signal is deprecated, use sigaction instead
- exit from the handler
2012-04-19 15:08:12 +02:00
Michael Stahl
946e7180be oosplash: handle SIGTERM by killing soffice.bin 2012-04-14 21:07:15 +02:00
Stephan Bergmann
7b9ea611be Resolves rhbz#804437, do not rtl_uString_release(NULL)
...in case osl_getProcessWorkingDir fails (e.g., if it has been unlinked).
2012-03-20 11:23:55 +01:00
Stephan Bergmann
8bbf048085 fdo#46434: Always send command line arguments as UTF-8 2012-02-29 15:08:20 +01:00
Stephan Bergmann
cf4416a68f fdo#46434: No need to turn arguments into absolute file URLs when sending
...as the receiving side already takes care of that (using the cwd that is sent first).
2012-02-29 11:47:10 +01:00
Stephan Bergmann
60f97f3ceb Typo bInhibitJavaLdx -> bInhibitPagein 2012-02-29 10:43:21 +01:00
David Tardon
ce4c9fa90a WaE: exec_javaldx defined but not used (javaless build) 2012-02-18 21:49:16 +01:00
Caolán McNamara
13b6afe8c8 Resolves: rhbz#788042 skip splashscreen with --quickstart 2012-02-07 13:40:05 +00:00
Julien Nabet
05c51d5dfb Some cppcheck cleaning 2012-01-10 00:02:01 +01:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Caolán McNamara
697415eb4e WaE and build errors with OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:15 +00:00
Matúš Kukan
f958657cc5 gcc-trunk: fix error: unable to find string literal operator 'operator"" FOO' 2011-12-16 21:20:08 +01:00
Norbert Thiebaud
46d40d6419 remove include of pch header in desktop 2011-11-27 13:06:47 -06:00
August Sodora
48efe5ce26 Valgrind: fixed memory leak 2011-11-18 09:29:54 +01:00
Tomas Chvatal
4fe54ea11e Instead of returning out of function just skip its calling. 2011-11-15 12:34:35 +01:00
Stephan Bergmann
5d4af26ae9 Revert "oosplash - daemonize to help mutt users recover their sanity"
For one, it leaves detached oosplash processes behind (the forked oosplash
instance waits for the soffice.bin child forked from the original oosplash
instance in vain).  For another, it makes unavailable the soffice.bin exit code.

This reverts commits aacf55dbe0 and
62ebb119cf.
2011-11-09 13:48:21 +01:00
Stephan Bergmann
de90369c31 Properly check sscanf return value. 2011-11-08 20:49:31 +01:00
Michael Meeks
62ebb119cf don't demonize if we are passed an --accept line for UNO remote control 2011-11-08 17:52:37 +00:00
Michael Meeks
aacf55dbe0 oosplash - daemonize to help mutt users recover their sanity 2011-11-08 16:03:48 +00:00
Christian Lohmaier
17f977c104 remove leftover comment regarding removed Mac OSX conditional 2011-11-08 14:48:06 +01:00
Michael Meeks
3f40276194 oosplash: remove redundant mac conditionals - we don't build on OS/X 2011-11-08 12:36:08 +00:00
Tor Lillqvist
ad44d75e53 chmod -x 2011-10-26 12:54:10 +03:00
Stephan Bergmann
b786a33cfd Undo basis/brand split: Move SDK and ure-link, remove OOO_BASE_DIR and BaseInstallation. 2011-10-24 13:59:58 +02:00