Commit graph

312273 commits

Author SHA1 Message Date
Stephan Bergmann
576ba0c0c0 Some comment clean up
Change-Id: I33fbe68b17e9a1c457b37c6d81619f2df67fbe8d
2012-09-17 14:45:47 +02:00
Norbert Thiebaud
afbc579278 add osl_atomic_* api to allow for inlined atomic increment/decrement
atomic increment/decrement is provided by
osl_increment/decrementInterlockedCount()
but that is a exported dll function, so it cannot be inlined.

valgrind analysis of a run, loading a medium sized spreadsheet, shows
that these 2 functions were called 3.5 millions times for a total cost of
55 millions of instructions... a cost of 8 instructions per call,
which is at least a 300% overhead since an atomic inc/dec is 2 instructions
iow we could save about 1% of the total instruction count of that run(4.6B)

We cannot change the existing api, as this would break ABI.
but we can add a new api. and migrate internal user to it.

osl_atomic_decrement/osl_atomic_increment do the same task,
than osl_*IntelockedCount() but do that inlined if possible.

Note that this version only optimize the case GCC with atomic built-in.
but support for other case should not be very hard.

follows-up patches will replace the use of the osl_*InterlockedCount()
in the product with their osl_atomic_* equivalent.

Change-Id: If4dcbf94ea6f62eb6d55d30613fe65878ffb8023
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-09-17 14:34:36 +02:00
Stephan Bergmann
581aa2ae22 Improvement on previous commit
Change-Id: Idadc0feb5e9c8a3abb5e53395003c386932aa05e
2012-09-17 14:28:22 +02:00
Noel Grandin
900d60b3cd fdo#46808, Adapt bridge::BridgeFactory UNO service to new style
Create a merged XBridgeFactory2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.

Change-Id: I7309f4d30f0e772bc203c701eb3407b920ffafcc
2012-09-17 14:28:22 +02:00
Stephan Bergmann
e3c05e34fd Improvement on previous commit
Change-Id: I609961ece562b7e02c542cfeb23d7c584a9663d9
2012-09-17 14:28:21 +02:00
Noel Grandin
369e3fdcda fdo#46808, Adapt i18n::LocaleData UNO service to new style
The implementation of the LocaleData implements the optional XLocaleData4,
so rather than creating a new interface for the new-style service, we simply
make the service implement XLocaleData4, which in turn implements
XLocaleData3, XLocaleData2, XLocaleData.

Change-Id: I3e9a48b031be6b2aa5e04b376b3940b942add85a
2012-09-17 14:28:21 +02:00
Cédric Bosdonnat
9486e6c45f libcmis: bad warning fix... refixed
Change-Id: I66716b090bdf0c10d940ab7ed225a1b5cb797516
2012-09-17 14:02:30 +02:00
Cédric Bosdonnat
0065e6613b Forgot to git add libcmis-0.3.0-warnings.patch
Change-Id: I0b2f1b8011b0b38ef2ec874ed1681db7cbd114ab
2012-09-17 13:47:51 +02:00
Cédric Bosdonnat
bcaa72b06e libcmis: silenced some warnings
Change-Id: I4dd47968b4273804858a47707fdf07a3b5be242a
2012-09-17 13:40:44 +02:00
Stephan Bergmann
cdd7e25a5b These tests do not need the UCB
Change-Id: Ic5cd29efc01df5c77a7b4619f3e0cddb483817a6
2012-09-17 13:35:54 +02:00
Luboš Luňák
1e5e5c4022 avoid C++11 narrowing conversion error with clang
/home/tinderbox/clang-master-build/solver/unxlngi6/inc/external/boost/uuid/seed_rng.hpp:143:61:
error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned int' in initializer list [-Wc++11-narrowing]
            unsigned int rn[] = { std::rand(), std::rand(), std::rand() };

Change-Id: Iea9808492cd3fbcf078e61bbc184bdc434e7cd8a
2012-09-17 13:31:54 +02:00
Stephan Bergmann
af875ebebc Missing dependency
Change-Id: Iba87094fe3c003f5c49f995a54531462298ea190
2012-09-17 13:26:35 +02:00
Miklos Vajna
4dff8b0d40 n#778140 DOCX import of w:doNotUseHTMLParagraphAutoSpacing compat option
This reverts commit 61c94cbe2c (as it
touched values which are not in the spec) and sets the correct paragraph
top/bottom margin in case the compat option is enabled.

Change-Id: I152a76d8fcdef3acf5491783c2ccacd2d48e76b3
2012-09-17 12:55:17 +02:00
Caolán McNamara
f91e008c98 older icu's appear to have the features, but not the typedefs
Change-Id: Ic17ffb49e7f143366c9c200d1c04b0536f2222b4
2012-09-17 11:47:40 +01:00
Stephan Bergmann
e8b79f29a6 fdo#54858: DocumentDigitalSignatures::initialize can be called with 0 args now
...as the new createDefault service ctor internally calls
createInstanceWithArgumentsAndContext, not plain createInstance[WithContext].

Change-Id: Ia3bf8167154a4ae9d64dae271cc23d513e9e77fb
2012-09-17 12:03:03 +02:00
Caolán McNamara
01cadc8fdb Related: rhbz#857860 enable ligatures and kerning only when requested
Change-Id: I8c4d9744c9a8704fbb7de5670933f2229f710fce
2012-09-17 10:46:28 +01:00
Caolán McNamara
d5e15c6355 update unused code list
Change-Id: I4d6ad11fbe68420931e88defa20afbef290d4d24
2012-09-17 10:46:27 +01:00
Caolán McNamara
68ffb332f5 nothing propagates HAVE_CUPS_H so cups is always disabled
regression from 22f2e5f286

so, lets follow the same pattern as else where and fixup
ENABLE_CUPS to be TRUE when enabled and lets just link
against cups and not do the dlopen dance

Change-Id: I3cff1bd98a7474c403d7ff66183e76e26e407de8
2012-09-17 10:46:27 +01:00
Caolán McNamara
c20ba023c7 XubString->OUString
Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
2012-09-17 10:46:27 +01:00
Stephan Bergmann
44aa7df623 Missing include
Change-Id: I7917d061f4aed307f29d428a72c793e782944e49
2012-09-17 10:43:43 +02:00
Christian Lohmaier
72411fca48 don't add invalid UTF-8 to _NET_WM_NAME and _NET_WM_ICON_NAME
time to get rid of workarounds for broken window managers that were
introduced more than 10 years ago.

Change-Id: I43b4c7aeab1b86b3d4a290a1d1d64c6fcb9a57ef
Reviewed-on: https://gerrit.libreoffice.org/633
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17 08:18:13 +00:00
Andrzej J.R. Hunt
9f8cd15be9 Add icons + device name display to pairing activity.
Change-Id: If27119e3e62bac8046fcc33cb12767b116bcc991
2012-09-17 10:16:55 +02:00
Christian Lohmaier
9b0b15ee09 checksize.pl chokes on empty files created by __debug_install_post…
…that is /usr/lib/rpm/mageia/find-debuginfo.sh on Mageia for example.
As the desktop-integration packages don't have any binaries whose
debuginfo could be extracted and put into a -debug package, there is no
impact on the packages themselves.

Change-Id: I99756f6a1a3de707a94f7559b9f1b5169d2e7ee1
Reviewed-on: https://gerrit.libreoffice.org/630
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17 08:12:59 +00:00
Douglas Rodrigues de Almeida
01abb62444 Easyhack 50089
UI accelerator keys missing in sections Table Design and Slide Transition of task pane.

I chose characters that are not used as menus keys.

Change-Id: Ide70e4703b0e27e001d487e07fa05fb14481cad2
Reviewed-on: https://gerrit.libreoffice.org/629
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17 08:10:04 +00:00
sagar
b079fd5a1b fdo#34792 - Fix for truncated field labels in Bibliography database dialog
Change-Id: I256b2b0ad508faed68c9faf0df6a9bb2e334cc66
Reviewed-on: https://gerrit.libreoffice.org/627
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-17 08:03:05 +00:00
Andrzej J.R. Hunt
ee181f82aa Styling and icons for Selector Activity complete.
Change-Id: I11e26c9c97c4e9aea465c0d9f6b7863a260a3577
2012-09-17 09:58:19 +02:00
Ivan Timofeev
9d265e1b69 fdo#54858: fix UNO service conversion
regression from 197a79e571

Change-Id: I3fbba4da0d293659d8521c768d34de18cd6bc634
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2012-09-17 09:54:50 +02:00
Stephan Bergmann
24aec4dad6 Include header with prototypes of defined functions
Change-Id: Ia28c36b1627ef944adecd5c8a55c150bd0f9aa02
2012-09-17 09:31:46 +02:00
Andrzej J.R. Hunt
b8834500f7 Changed timerUpdateThread to Runnable for clarity.
Change-Id: I49d66181d3aecddf8a5f6fbccccce01699aaa465
2012-09-17 08:39:32 +02:00
Markus Mohrhard
c4a6a8d239 add more test for ScRangeList::DeleteArea
Change-Id: I2484603b74cbdb1f92c08eac6c02d9a091e06eb9
2012-09-17 02:44:11 +02:00
Markus Mohrhard
21edfcb824 test case for ScRangeList
Change-Id: I371ac1b3236777a73e4f25f93d465041308e34b4
2012-09-17 02:14:13 +02:00
Markus Mohrhard
4cf0759e7c fix ScRangeList::DeleteArea for the 4 ranges case
Change-Id: I6321a722be6779d839459ed71b793a46e0968567
2012-09-17 02:14:13 +02:00
Andras Timar
eaa81cc2f0 move help compiler/linker/indexer to a new module
we may want to use syntax highlighter class from svtools later,
which is not available for l10ntools

Change-Id: I5a06b77cb6935e3ef68015fb608aa26ac7c53fac
2012-09-16 20:41:26 +02:00
David Tardon
eb5b28c344 export sal init and deinit functions
Linking of cppunittester (and any other executable that uses
SAL_IMPLEMENT_MAIN or SAL_IMPLEMENT_MAIN_WITH_ARGS) fails otherwise.

Change-Id: I778941ab2069819789f96ab04f364ea61cf4a3cb
2012-09-16 13:03:16 +02:00
Julien Nabet
21fbe158f1 Remove useless variable
Change-Id: Id554c4aba878b329351b2c61e0e90d4515debd6a
2012-09-16 11:38:29 +02:00
Peter Jentsch
8b950e8213 fix endless recursion with some characters in spreadsheetml headers/footers 2012-09-16 12:48:51 +02:00
Julien Nabet
5bfa5cb86a Fix duplicate branches for if and else
Change-Id: Ic602fd4df63e6807f49c256ce7849ae587eeb82d
2012-09-16 10:24:59 +02:00
Julien Nabet
823d44d390 Fix consecutive return, goto... statements are unnecessary
Change-Id: Ia0c399470b933824ae6fefbb486cf742f72312fd
2012-09-16 09:28:07 +02:00
Julien Nabet
660e72bda2 Fix for inefficient checking for 'm_aRepositories' emptiness
Change-Id: I33785ba3b9fb100b1ffb0d0ac78894593bf52ee9
2012-09-16 09:21:06 +02:00
Markus Mohrhard
78e35a68b2 only delete cond formats when attributes are deleted, fdo#54748
Change-Id: I41829e8464fb2fb5e7bbc435f9aa5ed72e7d5cbc
2012-09-16 04:09:36 +02:00
Julien Nabet
7389140c1a Prefer prefix ++/-- operators for non-primitive types
Change-Id: I4028296dd86eef2b8f84cab15eba3c4c15b18c6f
2012-09-16 00:48:05 +02:00
Julien Nabet
1e08849485 Prefer prefix ++/-- operators for non-primitive type
Change-Id: I0373b40ee404c74ca3c2bd479c5f7b18b7495548
2012-09-16 00:46:51 +02:00
Alexander Wilms
3fad87a2df Added Tango icons
Change-Id: I383a631961e2db1e0eb92e78995c9e8c4b232264
2012-09-15 23:33:31 +02:00
Stephan Bergmann
659c6a363b Let --enable-assert-always-abort affect setting NDEBUG directly
For one, assert.h is designed to be includeable multiple times with changing
NDEBUG settings, so it is not robust to include it early in sal/macros.h with
"correct" NDEBUG settings and potentially include it again later.  For another,
there is #ifndef NDEBUG code providing functionality used exclusively within
assert calls, which must be compiled with the same NDEBUG-setting as the
relevant #include <assert.h>.

Change-Id: I7b2f9c85f8e2155051274757c64162ed5a5e9d1b
2012-09-15 23:20:48 +02:00
Stephan Bergmann
7a042c8204 Include saldllapi.h explicitly where needed
Change-Id: I7ba421479cd332e059ed9da1c6090e2df420347e
2012-09-15 23:20:47 +02:00
Stephan Bergmann
e9689e4fdc Revert "saldllapi.h is really not included outside of sal itself"
This reverts commit 2dfe34ce0e:

* sal/saldllapi.h is about something different than sal/types.h (it is rather a
  mistake of cf77e8a0b9 "sal: add visibility
  symbols" to shortcut the #include of sal/saldllapi.h into sal/types.h instead
  of the headers that actually need it), not every header needs to include
  sal/types.h

* sal/config.h is the header to always include first (not sal/types.h)

Change-Id: I217f2540197ddb682c6c00e529b812b04b327d73
2012-09-15 23:20:46 +02:00
Julien Nabet
0d40167cec Fix iterator management
Thank you Markus for your feedback

Change-Id: I10fc6e2be8d648f3be1d2081582c90e27cf3505d
2012-09-15 21:20:14 +02:00
Michael Meeks
084d40d601 fix odma plugin for new ucbhelper API
Change-Id: I40c58967aca4f9a808feb8528f2f3ba651bb2a80
2012-09-15 19:51:09 +01:00
Julien Nabet
d7515f60dc Simplify AutoOGuardArray + rename private attribute
Change-Id: I9d651303fb80ef5c81d608e56a87cb9548c13f8f
2012-09-15 15:16:04 +02:00
Julien Nabet
64787ead29 Remove unused variable
Should we use vector for m_pListLevels and use iterator then?
Where does the "10" come from?

Change-Id: I2c0d569db48226149645f039ca11633ae2b6c7a2
2012-09-15 14:07:54 +02:00