summaryrefslogtreecommitdiff
path: root/registry
AgeCommit message (Collapse)AuthorFilesLines
2014-01-28bool improvementsStephan Bergmann3-13/+13
Change-Id: I60fc93beb58c548c7278eaf69f1d0a448b5c27f1
2014-01-10simplifyStephan Bergmann1-2/+4
Change-Id: I564ef5ebf16c0ee50da69f3d8b97a5452a1cd0b8
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin1-2/+2
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-9/+9
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin1-1/+1
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-3/+3
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin1-1/+1
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-09-18New unoidl-check tool to replace regcompareStephan Bergmann1-2/+1
...for checking compatibility with the reference rdbs. unoidl-check is no longer based on the legacy registry format, but can process all the various new UNOIDL registry formats. regcompare is still included in the SDK for now. (gb_UnoApi[Target]_set_reference_rdbfile now takes a non-empty sequence of rdb files, any necessary dependencies of the final rdf file preceding it just like it is required on the unoidl-check command line. Also, executing the unoidl-check now properly depends on those rdb files.) TODO: unoidl-check is too conservative for now and flags some changes as incompatible that are not. Change-Id: I92e4c69403c5e3fcb31707c98c65a2f509592dd4
2013-09-05CID#1078783: fix memory leakMarkus Mohrhard1-0/+1
Change-Id: I63a244ececcdaba5837b028bc73cbd26e8555aa4
2013-08-30WaE: size_t/sal_Int32: possible loss of dataTor Lillqvist2-2/+2
Change-Id: I96849e94196291bd387737aae537139ff4fefeb3
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-8/+6
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-15Mark as constTakeshi Abe1-2/+2
Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
2013-06-29remove OUString wrap for string literalsThomas Arnhold2-51/+51
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-18fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()Jelle van der Waa1-1/+1
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6 Reviewed-on: https://gerrit.libreoffice.org/4335 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-05-29fdo#60724 change spelling error REMOVEABLE -> REMOVABLE IIThomas Arnhold2-2/+2
Change-Id: I0057b9174af6a83f3fde0e27c3a91a4aeca95873 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-14initialized with plain 0, instead of sal_False/falseTakeshi Abe1-6/+6
Change-Id: I2df1bd52293c4423de5ac4c41f9392be1e8d2ccf
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák1-1/+1
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks6-126/+24
2013-04-24gbuild: drop empty use_packages callsDavid Tardon2-6/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24gbuild: drop uses of removed packagesDavid Tardon1-1/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24move URE headers to include/David Tardon1-2/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-23execute move of global headersBjoern Michaelsen15-5084/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-15fdo#60724 informations -> informationThomas Arnhold2-2/+2
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-12do not set soversion for private ure librariesMatúš Kukan2-113/+0
Change-Id: I2b2099d8fc00062f67c42e73c4b8a17a689db89d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-10Revert "registry: new ZipPackage_registry_odk_headers"Michael Stahl4-47/+45
This reverts commit ba8372449befc6c534ab9596d7a3fd1e66884d61. The "reg" library is not actually a stable URE interface. Conflicts: odk/CustomTarget_doxygen.mk registry/Module_registry.mk Change-Id: Ic53e1b8eecd6a12c9ec194df2f0093004db7c01b
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák19-289/+271
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-03-27-Wunused-macrosStephan Bergmann1-27/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-19further OUString cleanupThomas Arnhold1-3/+3
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-9/+9
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19reduce whitespaces between include and filenameThomas Arnhold6-29/+29
Change-Id: I15f6ad0a760a28cbac53f99ba4d14ff5c24ce005
2013-03-18cleanup doxygen warningsPeter Foley2-30/+45
Change-Id: I9181cad5bfa93f9e8b3d944b2b50a3ccc0b42595
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-2/+0
2013-03-14do not build registry's executables for iOSMatúš Kukan1-3/+5
Change-Id: Ided79f8993a2fb2c261de0fc8a50d5cbf96b9987
2013-03-14regmerge/regview seem to be part of ure, not odkMatúš Kukan1-3/+3
Change-Id: I30ab642d5597153f1700bcf6e1b7647a736a347e
2013-03-13more subtle dependencies for cross-compilationMatúš Kukan1-7/+8
Now we build only what we really need for 'build' platform - there is new build-tools make target. The list of tools is in solenv/gbuild/extensions/pre_BuildTools.mk. Also similar is done to some extent for 'host' platform using gb_Module_add_targets_for_build which is ignored for 'host'. Change-Id: I6acd1762b16aca366aac1a0688500f27869cfca2
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck1-1/+1
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-01WIP: Experimental new binary type.rdb formatStephan Bergmann3-1486/+0
Add LegacyProvider to read the old format (requires a provider Manager, to resolve singletons' bases, to decide whether they are interface- or service- based). Replace registry-based reg2bin with provider-based reg2unoidl. Change-Id: I5865e62308cc2d9c5439211ac803d84e93aab656
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28Unused LIBRARY_VERSION macroStephan Bergmann1-5/+0
Change-Id: I4adea5036eaba5186faa8faa3d56bde338e8913a
2013-02-27registry: new ZipPackage_registry_odk_headersMichael Stahl4-45/+47
Change-Id: I0730e0a354ec952cdb67d1b22067ab59c86334c0
2013-02-27sal: new ZipPackage_sal_odk_headers for public ODK headersMichael Stahl1-1/+1
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
2013-02-25loplugin: improve indentationThomas Arnhold1-2/+1
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-14Comment clean-upStephan Bergmann1-6/+3
Change-Id: I7696dde7337531629d29cce7eb3f882cb4bfad0d
2013-02-11WaE: strict-aliasing issuesCaolán McNamara1-12/+19
Change-Id: I394b61fac90e1c2c26b1a4f073b87a5d3ae3e666 Reviewed-on: https://gerrit.libreoffice.org/2105 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-02-11Fix floating point handlingStephan Bergmann1-7/+39
Change-Id: Ib29dfc71f8c2d0797ead2c32f77bedf7156a3393
2013-02-05write double/float via union with unsigned type for strict-aliasingCaolán McNamara1-12/+2
Change-Id: Ie4dd1d41e5cde27ec5b144ca4b7c97276ff62479 Reviewed-on: https://gerrit.libreoffice.org/1990 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-02-04WaE unused variableNorbert Thiebaud1-2/+4
Change-Id: I36a51ad53e1992a32c59defa8847555caccd035f
2013-02-03More typosStephan Bergmann1-1/+1
Change-Id: I7b1bd08d9e5157c4eacb8ee5005c76e93eb32e63
2013-02-03reg2bin: Shrink output by reusing common stringsStephan Bergmann1-3/+13
...all the "Offset of Idx-Name" in the data format can likely be further shrunk by getting rid of the newly added level of indirection again. Change-Id: I322f4869a4d6f2e63802406f998e22beea30db41
2013-02-03TypoStephan Bergmann1-1/+1
Change-Id: I8e4f7c5a44bc300913efb68f901b794d8fb385fe