summaryrefslogtreecommitdiff
path: root/registry/source/regimpl.cxx
AgeCommit message (Collapse)Author
2015-08-23tdf#39440 cppcheck: redundantAssignmentMichael Weghorn
This addresses some of cppcheck's "redundantAssignment" warnings ("Variable '<varName>' is reassigned a value before the old one has been used"). Change-Id: I8fd2950d5aa1a3f4bd9e1c4c336abe465d1f657e Reviewed-on: https://gerrit.libreoffice.org/17926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-23inline a handful of use-once #definesNoel Grandin
Change-Id: Id2654555c4042f8c0bdbd6bab6507e705f08326b
2015-07-03Move module-private includes from include/registry/ to registry/Stephan Bergmann
Change-Id: I72bdd6627a191a65d5c3b479c100e30442a8bb9e
2015-05-28new clang plugin: loopvartoosmallNoel Grandin
Idea from bubli - look for loops where the index variable is of such size that it cannot cover the range revealed by examining the length part of the condition. So far, I have only run the plugin up till the VCL module. Also the plugin deliberately excludes anything more complicated than a straightforward incrementing for loop. Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
Change-Id: I07d9567da23094836134a54afce660500bf1b3f5
2015-04-09fix android buildNoel Grandin
since after my converting stuff in include/registry/types.h to use 'enum class', it can obviously no longer be "extern C", so drop the "extern C" and rename the file to reflect that. Change-Id: Ia30f5731316525e48531c4785ab7471a428bcf6f
2015-04-09convert RTReferenceType to scoped enumNoel Grandin
Change-Id: I8320f6f42d5579fbd09450ddca61c4c066de98e4
2015-04-09convert RTMethodMode to scoped enumNoel Grandin
Change-Id: I81599570698eb92abf14fa6386d8545c2031e863
2015-04-09convert RT_ACCESS fields to scoped enumNoel Grandin
Change-Id: Ifef0aaae6208f18c1352fef7c471deb60a97820d
2015-04-09convert RegError to scoped enumNoel Grandin
Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a
2015-04-09convert RegValueType to scoped enumNoel Grandin
Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
2015-04-09convert REG_ constants to scoped enumNoel Grandin
Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I192bc9653d8492a850a5e259e15782bd3bb24922
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2014-12-19fdo#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: Idcedd908c653d5a5700884f233ad134dde8be018 Reviewed-on: https://gerrit.libreoffice.org/13540 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-21Silence unhelpful cid#1215304 untrusted loop bound warningsStephan Bergmann
Change-Id: If4db6a631ad6b24ca6ecfef81a0a20b766ed6324
2014-09-30registry: std::auto_ptr -> std::unique_ptrStephan Bergmann
Change-Id: I9489f90a63d477e8802634e7850d3a3fa8e4d133
2014-09-25coverity#705672 Resource leakCaolán McNamara
Change-Id: Ibeab8e1b64f3185eaca81a31bd131d11994386f3 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-17Translate German comments.Michael Meeks
Change-Id: I1d7c1fa2fffe20a0bc60cf5533b8f8c28e360a1d
2014-02-26Remove visual noise from registryAlexander Wilms
Change-Id: Ica0c7fe04dae3c52583cc2324bae1cfa5af1e197 Reviewed-on: https://gerrit.libreoffice.org/8292 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-17registry: sal_Bool -> boolStephan Bergmann
Change-Id: Iaf118eca7a7b24945afbc1959ad78c712e4a299b
2014-01-28bool improvementsStephan Bergmann
Change-Id: I60fc93beb58c548c7278eaf69f1d0a448b5c27f1
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2013-09-05CID#1078783: fix memory leakMarkus Mohrhard
Change-Id: I63a244ececcdaba5837b028bc73cbd26e8555aa4
2013-05-29fdo#60724 change spelling error REMOVEABLE -> REMOVABLE IIThomas Arnhold
Change-Id: I0057b9174af6a83f3fde0e27c3a91a4aeca95873 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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-19reduce whitespaces between include and filenameThomas Arnhold
Change-Id: I15f6ad0a760a28cbac53f99ba4d14ff5c24ce005
2013-02-25loplugin: improve indentationThomas Arnhold
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-01-26Remove redundant braces around for loopsStephan Bergmann
...that had once been workarounds for compilers that did not yet support the C++98 scoping rules for declarations in for-init-statements. Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2012-10-01Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-08-04Replace usage of rtl/memory.h in registry with equivalent from string.hArnaud Versini
Change-Id: I3c442b7c3743684f62cc5ffc3c4b0926ff0db999
2012-07-03re-base on ALv2 code.Michael Meeks
2012-03-29UNO BYTE is signedStephan Bergmann
This is hopefully a better fix for c589fa17b8f3e6ded0d1e04120781eb5d6735bc7 "Dalvik enforces byte constants being in range (-128..127)."
2012-01-17registry: print error messages on stderrMichael Stahl
2012-01-02Fix for fdo43460 Part XXVII getLength() to isEmpty()Olivier Hallot
Please find attached a partial fix for Easy Hack FDO43460 Part XXVII Modules padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2011-11-27remove include of pch header from registryNorbert Thiebaud
2011-10-07cppcheck reduce scope of var in registry/...regimpl.cxxPierre-André Jacquod
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann
2011-09-23tidy indentCaolán McNamara
2011-09-22just silence the auto_ptr deprecations in isolationCaolán McNamara
2011-04-18Remove OS/2 support.Francois Tigeot
2011-04-04WaE: rework to avoid warningsCaolán McNamara
2011-03-30warning-return-values-registry.diff: avoid warning (i#58979)Petr Mladek
the code was correct; it was wrongly detected by some gcc versions; the warning was considered as an error in openSUSE build service; the change does not cause any harm;
2011-03-02Remove "using namespace ::rtl"Julien Nabet
2011-02-16Remove SCO supportThomas Arnhold
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-05remove include guards using fixguard.pyPetr Mladek
2010-03-04mhu22: resync to master repository (DEV300_m73).Matthias Huetsch [mhu]
2010-03-04mhu22: #i105430# #i108349# Fixed registry:ORegKey reference counting to ↵Matthias Huetsch [mhu]
avoid redundant closeKey()/flush() calls.