summaryrefslogtreecommitdiff
path: root/configmgr
AgeCommit message (Collapse)AuthorFilesLines
2014-08-13update_pchThomas Arnhold1-1/+0
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-07-21fdo#80536 UI: Menu entry for 'Edit File' -> 'Edit Mode'Joren De Cuyper1-1/+1
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-08configmgr: fix node cache clearing.Michael Meeks1-2/+2
Change-Id: Idd6c227b8f50446c1d3c48385de6c843faf47466
2014-07-08WaE: Unreachable codeTor Lillqvist1-2/+2
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-02Make configmgr loplugin:salbool-cleanStephan Bergmann1-0/+2
Change-Id: Ib1f33387c50bcd853140eb2fc46995d23d7f367b
2014-06-30configmgr: faster / simpler compare for keys.Michael Meeks5-10/+45
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-28configmgr: accelerate getPropertyValue.Michael Meeks1-4/+4
Change-Id: Ie0460c8db6b1e7fcc9bab1f5e9ae1fbd00987994
2014-06-28configmgr: accelerate simple config key fetches.Michael Meeks4-29/+92
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-28configmgr: implement a single item cache for node lookup.Michael Meeks2-18/+29
Saves 13.5m cycles on a headless start, 1.3%. Change-Id: I73f0dd8a523f84c765a217ee95aea9bcc3db1b5d
2014-06-28configmgr: re-factor findNode and clone into NodeMap.Michael Meeks10-27/+28
Change-Id: Ib170b3cec17402e38bf5555e21f83f44d70bb574
2014-06-28configmgr: hide NodeMap implementation.Michael Meeks3-8/+30
Change-Id: I57c81b5ec7a6541a825e42f9b68e7c5fa98f316f
2014-06-28configmgr: avoid constructing duplicating and freeing Any'sMichael Meeks5-36/+57
Accelerates headless startup by 6.5m cycles or so, 0.6% or so but something. Change-Id: I9edca3d0c1c81d865e8369fee5cf193da7adb97c
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin10-24/+6
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin14-44/+11
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-05various: remove SAL_THROW macroNoel Grandin6-15/+3
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-05-28update_pchThomas Arnhold1-11/+11
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28fix-includes.pl: configmgrThomas Arnhold68-653/+653
Change-Id: Ica1dc0c8003203ba0ea65a668ea3d86f341ad05d
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin12-235/+125
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-22update_pch: add configmgrThomas Arnhold3-0/+163
Change-Id: I74f1a032ebce8e4fa13d4afd7f520bbb367b2df5
2014-05-09There is no css::uno::Sequence<bool>Stephan Bergmann1-3/+3
This partially reverts 78b9537b6aca0f998f939988e6e1a56528d28baf "various: sal_Bool->bool." Change-Id: I732b2fb2cca3e66b396a35645f12ae96a40163d5
2014-05-08various: sal_Bool->boolNoel Grandin1-3/+3
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
2014-05-06Avoid using incomplete types with std containersStephan Bergmann1-3/+2
...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-04-12Unnecessary to mention dependency on icudata as only libicuuc directly uses itTor Lillqvist1-1/+0
libicudata exports a single symbol, icudt52_data (for ICU version 52), and only libicuuc refers to it. Change-Id: Ia04356fda20cf8109156ccd1cbbd9091e70adf27
2014-04-09Missing includeStephan Bergmann1-0/+1
Change-Id: I166ce50c038cdd3474cbdcf2ac360c237a98307c
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann18-212/+212
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-18Use cppu::BaseMutex instead of plain osl::Mutex as baseStephan Bergmann1-5/+5
Change-Id: Ie87cc749556d0a9b135b285143d33dc80d49a2ad
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-1/+1
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-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann11-261/+261
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-14Drop unused #includeTakeshi Abe1-1/+0
Change-Id: Id05440ffb8eb9990d2d08f721d6914f3dbc86cab
2014-02-07auto_ptr -> scoped_ptrStephan Bergmann1-3/+3
Change-Id: I5e405ec2689000c973cf8ff1f86c1c2d6202eda9
2014-02-03fix winreg exampleAndras Timar1-1/+1
Change-Id: I8115fb899e4248e6eab1aa9349456103353918e6
2014-01-27coverity#707684 Uninitialized scalar fieldCaolán McNamara1-1/+1
Change-Id: I960aa77ce107c4f02f1e331cda07b75435beed5d
2014-01-27coverity#983618 Uncaught exceptionCaolán McNamara1-4/+7
Change-Id: I3abf410e7235b8dd1d126a3c8705e3ef9722e93b
2014-01-27coverity#983617 Uncaught exceptionCaolán McNamara2-2/+5
Change-Id: I3f9c98d235d1bd5155653c6a56b757393bca2979
2014-01-27coverity#707681 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I88796c85447571d446c398439066029c3a200b4b
2014-01-27coverity#707680 Uninitialized scalar fieldCaolán McNamara1-1/+3
Change-Id: I763dc95a393bf296a7f3f5ce2a739f175fd528fb
2014-01-24Replace "known-good" dynamic_casts with static_castsStephan Bergmann7-38/+38
...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-24Revert "coverity#704575 et al. and clean-up."Stephan Bergmann2-146/+89
This reverts commit 753eeac8a641d70ad0c44bb15fa8949ac991f5d9, 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-22coverity#704575 et al. and clean-up.Norbert Thiebaud2-89/+146
Change-Id: I24b38b63d26bc2d4e1d479754120dfd5b5635737
2014-01-19do not resolve empty locale here when set, fdo#73549 relatedEike Rathke1-1/+1
Change-Id: Id9c8c3926f64826fd2295e0f75f007ce435f5915
2014-01-08Fix some configmgr XServiceInfoStephan Bergmann2-5/+25
Change-Id: I208f5892f6fb54d53ed4d17ddb189f0a24051a17
2013-12-16Allow setting environment value directly in .component filesStephan Bergmann1-2/+2
...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-16change config example in commentAndras Timar1-3/+3
because Expert Config is no longer a leaf in option page tree, it became a standalone window. Change-Id: Ib82b5eb958073d1afbd9ad2b8493e2670dee591b
2013-12-12simplify - use OUString::startsWith where possibleNoel Grandin1-1/+1
Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-09Get rid of redundant configmgr::XcuParser::State::lockedStephan Bergmann2-92/+88
Change-Id: If7019fc334c0f11fae464b65c135d01acfb1a46b
2013-12-09fdo#69027 check for state_.top().lockedAndras Timar1-1/+1
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-06Do not create paths starting "//" when root is just "/"Stephan Bergmann1-3/+4
Change-Id: If0b413a4fdd93465074548c7ea5451288c1d12aa
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin1-8/+4
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-21Some more adaptions to cppu::supportsServiceStephan Bergmann4-7/+11
Change-Id: I0fa482b3303f339afabf5ed8f3e432b56c6590aa
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-32/+16
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be