Commit graph

3023 commits

Author SHA1 Message Date
Thomas Arnhold
3352a88c8c remove dead ToolBox RID_HELPBAR
Change-Id: Ide31f67c346f9a82bf6aa8282caa7cfcee65d9fd
2014-08-18 05:22:54 +02:00
Thomas Arnhold
7cc627ff79 update_pch
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-08-13 10:10:33 +02:00
Joren De Cuyper
2420e776f7 fdo#80536 UI: Menu entry for 'Edit File' -> 'Edit Mode'
In this commit not only a menu entry is created, also the name is changed
from 'Edit File' to 'Edit Mode'.

Change-Id: Icd7998307cb0337dd2ee95b298452557ab37375b
Reviewed-on: https://gerrit.libreoffice.org/10211
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-21 08:25:06 +00:00
Michael Meeks
58ceb16141 configmgr: fix node cache clearing.
Change-Id: Idd6c227b8f50446c1d3c48385de6c843faf47466
2014-07-08 09:39:03 +01:00
Tor Lillqvist
1a400f39e8 WaE: Unreachable code
Not sure if the intent is that clearCache() should be called, but the
calls have just accidentally been placed after the return statements,
or whether the code works correctly and as intended as it is now,
i.e. with the unreachable calls to clearCache().

Warning emitted by VS 2013, why don't other compilers warn? Perhaps
these functions are never called?

Change-Id: I16b0bc1b836753ef5579dadba211cbce4f50cbc3
2014-07-08 02:37:37 +03:00
Stephan Bergmann
0e8d69fa7d Make configmgr loplugin:salbool-clean
Change-Id: Ib1f33387c50bcd853140eb2fc46995d23d7f367b
2014-07-02 18:48:18 +02:00
Michael Meeks
bfb978334c configmgr: faster / simpler compare for keys.
A surprising amount of time is/was spent comparing keys in the
std::map red/black tree traversing nodes. Since we don't need
the data truly sorted, instead sort in length buckets. Kills
90k rtl_ustring_compare_withLength calls on startup, around
0.9% of headless start.

Change-Id: Ib23aff151ad50d56bbf2ba3e28882cc81898d9ec
2014-06-30 15:36:26 +01:00
Michael Meeks
5fd43384a4 configmgr: accelerate getPropertyValue.
Change-Id: Ie0460c8db6b1e7fcc9bab1f5e9ae1fbd00987994
2014-06-28 14:37:25 +01:00
Michael Meeks
879aa54e89 configmgr: accelerate simple config key fetches.
Avoid heap allocating UNO object wrappers for the underlying Node
structures only to convert to Any and immediately free them agian
when we can.

Change-Id: Iae4612e9602f872f5d8cca2e516df594c9f1118c
2014-06-28 14:37:24 +01:00
Michael Meeks
f55ddffd7e configmgr: implement a single item cache for node lookup.
Saves 13.5m cycles on a headless start, 1.3%.

Change-Id: I73f0dd8a523f84c765a217ee95aea9bcc3db1b5d
2014-06-28 14:37:23 +01:00
Michael Meeks
8bfdc161e6 configmgr: re-factor findNode and clone into NodeMap.
Change-Id: Ib170b3cec17402e38bf5555e21f83f44d70bb574
2014-06-28 14:37:23 +01:00
Michael Meeks
ff1d2ba501 configmgr: hide NodeMap implementation.
Change-Id: I57c81b5ec7a6541a825e42f9b68e7c5fa98f316f
2014-06-28 14:37:22 +01:00
Michael Meeks
f692c61ab2 configmgr: avoid constructing duplicating and freeing Any's
Accelerates headless startup by 6.5m cycles or so, 0.6% or
so but something.

Change-Id: I9edca3d0c1c81d865e8369fee5cf193da7adb97c
2014-06-28 14:37:22 +01:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Noel Grandin
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
Thomas Arnhold
5e62d30fa2 update_pch
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28 15:53:10 +02:00
Thomas Arnhold
9c1ff374e9 fix-includes.pl: configmgr
Change-Id: Ica1dc0c8003203ba0ea65a668ea3d86f341ad05d
2014-05-28 15:53:10 +02:00
Noel Grandin
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
Thomas Arnhold
bc58eac341 update_pch: add configmgr
Change-Id: I74f1a032ebce8e4fa13d4afd7f520bbb367b2df5
2014-05-22 12:50:45 +02:00
Stephan Bergmann
22e800c4d2 There is no css::uno::Sequence<bool>
This partially reverts 78b9537b6a "various:
sal_Bool->bool."

Change-Id: I732b2fb2cca3e66b396a35645f12ae96a40163d5
2014-05-09 13:13:42 +02:00
Noel Grandin
78b9537b6a various: sal_Bool->bool
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
2014-05-08 11:48:14 +02:00
Stephan Bergmann
03d960ac11 Avoid using incomplete types with std containers
...which is explicitly supported by Boost.Container though, but we cannot use
boost::container::map here as Boost.Container is only available since Boost 1.48
and our base is 1.47 still.  However, there appears no need for Children to be
sorted, and std::unordered_map (and thus boost::unordered_map) requires that
pointers to elements are not invalidated by insertions, which we do require.

Change-Id: I70ad6f40318d2bafae53ebb67d84c1c89a7d68f6
2014-05-06 10:41:18 +02:00
Tor Lillqvist
6d9060a6e6 Unnecessary to mention dependency on icudata as only libicuuc directly uses it
libicudata exports a single symbol, icudt52_data (for ICU version 52), and
only libicuuc refers to it.

Change-Id: Ia04356fda20cf8109156ccd1cbbd9091e70adf27
2014-04-12 18:52:55 +03:00
Stephan Bergmann
81834cb481 Missing include
Change-Id: I166ce50c038cdd3474cbdcf2ac360c237a98307c
2014-04-09 09:48:33 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
93d6ce502e Use cppu::BaseMutex instead of plain osl::Mutex as base
Change-Id: Ie87cc749556d0a9b135b285143d33dc80d49a2ad
2014-03-18 13:29:13 +01:00
Noel Grandin
86a32589e9 Find places where OUString and OString are passed by value.
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-18 08:32:26 +02:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Takeshi Abe
bbe3bec949 Drop unused #include
Change-Id: Id05440ffb8eb9990d2d08f721d6914f3dbc86cab
2014-02-14 18:44:05 +09:00
Stephan Bergmann
b20888e129 auto_ptr -> scoped_ptr
Change-Id: I5e405ec2689000c973cf8ff1f86c1c2d6202eda9
2014-02-07 18:43:32 +01:00
Andras Timar
b95a962970 fix winreg example
Change-Id: I8115fb899e4248e6eab1aa9349456103353918e6
2014-02-03 19:47:56 +01:00
Caolán McNamara
3110ff212c coverity#707684 Uninitialized scalar field
Change-Id: I960aa77ce107c4f02f1e331cda07b75435beed5d
2014-01-27 17:03:05 +00:00
Caolán McNamara
e06b894af5 coverity#983618 Uncaught exception
Change-Id: I3abf410e7235b8dd1d126a3c8705e3ef9722e93b
2014-01-27 17:03:05 +00:00
Caolán McNamara
aece42b7b4 coverity#983617 Uncaught exception
Change-Id: I3f9c98d235d1bd5155653c6a56b757393bca2979
2014-01-27 17:03:05 +00:00
Caolán McNamara
773db5198e coverity#707681 Uninitialized scalar field
Change-Id: I88796c85447571d446c398439066029c3a200b4b
2014-01-27 17:03:04 +00:00
Caolán McNamara
8dec95f1d5 coverity#707680 Uninitialized scalar field
Change-Id: I763dc95a393bf296a7f3f5ce2a739f175fd528fb
2014-01-27 17:03:04 +00:00
Stephan Bergmann
6935acb053 Replace "known-good" dynamic_casts with static_casts
...it avoids false warnings about unchecked dynamic_cast results from static
code analyzers, and potentially makes the code a little faster, too.  (Most of
these dynamic_casts were kind of a leftover from a very early design that
dispateched on Node type via dynamic_cast instead of a Node::Kind, but which was
much too slow.)

Change-Id: I8db08a1c35783f8ea6c51eed55b11faa2d958807
2014-01-24 17:52:46 +01:00
Stephan Bergmann
a0e4c24ecf Revert "coverity#704575 et al. and clean-up."
This reverts commit 753eeac8a6, which added bogus

  if (... != 0)

checks after dynamic_casts that cannot fail, making the code now look as if it
was expected that those casts can fail and the code is prepared to handle it
(which it is not).  Silencing the false coverity reports will be addressed in a
follow-up commit.

(That commit unfortunately mixed those changes with mass cosmetic changes.)
2014-01-24 17:52:46 +01:00
Norbert Thiebaud
753eeac8a6 coverity#704575 et al. and clean-up.
Change-Id: I24b38b63d26bc2d4e1d479754120dfd5b5635737
2014-01-22 22:37:35 -06:00
Eike Rathke
26fc9be1bf do not resolve empty locale here when set, fdo#73549 related
Change-Id: Id9c8c3926f64826fd2295e0f75f007ce435f5915
2014-01-19 15:04:09 +01:00
Stephan Bergmann
29e15349bf Fix some configmgr XServiceInfo
Change-Id: I208f5892f6fb54d53ed4d17ddb189f0a24051a17
2014-01-08 10:44:40 +01:00
Stephan Bergmann
b1d65c9f15 Allow setting environment value directly in .component files
...for internal loader="com.sun.star.loader.SharedLibrary" components, instead
of exported component_getImplementationEnvironmen (or implicit
CPPU_CURRENT_LANGUAGE_BINDING_NAME).  Adapted a few .component files as proof-
of-concept, more to follow.

Change-Id: I82332e0a48e6fc1da245990bb72265fe6e58447e
2013-12-16 21:43:12 +01:00
Andras Timar
1aceb7bdae change config example in comment
because Expert Config is no longer a leaf in option page tree,
it became a standalone window.

Change-Id: Ib82b5eb958073d1afbd9ad2b8493e2670dee591b
2013-12-16 19:57:06 +01:00
Noel Grandin
fb84710151 simplify - use OUString::startsWith where possible
Convert code like
   if( !aStr.isEmpty() && aStr[0] == 'x' )
to
   if( aStr.startsWith("x") )

Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-12 13:15:24 +02:00
Stephan Bergmann
cf8a54e48c Get rid of redundant configmgr::XcuParser::State::locked
Change-Id: If7019fc334c0f11fae464b65c135d01acfb1a46b
2013-12-09 15:16:55 +01:00
Andras Timar
93210ec3b3 fdo#69027 check for state_.top().locked
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: I wonder why I originally
introduced State::locked in addition to State:ignored in the first place, but
can't find a good reason for that now. So the patch looks ok, though it could be
further simplified to completely get rid of State::locked. Will do that in a
follow-up commit.

Change-Id: If07a07b21effbf42918408a0b60b2d18bdc8665c
2013-12-09 12:53:22 +01:00
Stephan Bergmann
bd8b3be0c7 Do not create paths starting "//" when root is just "/"
Change-Id: If0b413a4fdd93465074548c7ea5451288c1d12aa
2013-12-06 16:53:55 +01:00
Noel Grandin
73342dbb82 remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.

Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22 08:07:19 +02:00
Stephan Bergmann
36e5fa0033 Some more adaptions to cppu::supportsService
Change-Id: I0fa482b3303f339afabf5ed8f3e432b56c6590aa
2013-11-21 18:08:38 +01:00