summaryrefslogtreecommitdiff
path: root/include/basic
AgeCommit message (Collapse)AuthorFilesLines
2016-03-09loplugin:constantparam in basicNoel Grandin1-5/+1
Change-Id: I5b49406535c1ec95e47fe237a23184a499b875e5
2016-03-03loplugin:unuseddefaultparams in basicNoel Grandin1-2/+2
Change-Id: I286efdac6af47a859693fccc71b445915f76945c
2016-02-09Remove excess newlinesChris Sherlock2-5/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-08sequence->vector in basicNoel Grandin2-2/+3
Change-Id: Ic42f7218bda81effe870d950f666ba7653d60c66 Reviewed-on: https://gerrit.libreoffice.org/22177 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-08loplugin:unusedmethodsNoel Grandin1-32/+0
using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-16BASIC : Remove useless methods in StarBasicArnaud Versini1-3/+1
Change-Id: I9e8ce92b967ee9c9485b7af15280f6a212ff599d Reviewed-on: https://gerrit.libreoffice.org/21498 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-15basic: coverity#1348466 checked returnMichael Stahl1-1/+1
Kind of unnecessary but let's hope it shuts up coverity. Change-Id: I4903c9df788ce5fb9648c5fd68627ff21362828f
2016-01-12loplugin:unusedmethods unused return value in include/basicNoel Grandin6-16/+16
Change-Id: Ib1a006adaa92e257d40a20ff0d8beeb37e7c2fe0 Reviewed-on: https://gerrit.libreoffice.org/21360 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-12BASIC: Store directly SbxVarEntry in SbxArrayArnaud Versini1-1/+1
Change-Id: I64ae6c2a45e0ed880f5b76ca2ad420d684fdfeb4 Reviewed-on: https://gerrit.libreoffice.org/21308 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org>
2016-01-07BASIC : use std::vector instead of SbArray for Modules.Arnaud Versini2-3/+4
Change-Id: I9594efb13b3dccc637ccd61eea4b42255c2a775c Reviewed-on: https://gerrit.libreoffice.org/20817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-12-30BASIC : Remove useless allocation operator overloadArnaud Versini1-3/+0
Change-Id: I134cdbfe388347264a810bbfbff8b4f9f373e663 Reviewed-on: https://gerrit.libreoffice.org/20873 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
2015-11-30loplugin:unusedfieldsNoel Grandin1-3/+2
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-24loplugin:unusedfields in include/comphelper,include/editengNoel Grandin1-1/+0
Change-Id: I619c2cf1765df97159fc52ee84e0e9e8d16a22fe
2015-11-17loplugin:unnecessaryvirtualNoel Grandin1-2/+0
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-115th step to remove tools/rtti.hxxOliver Specht10-17/+0
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann8-19/+19
Change-Id: I1ec9a671fe3ac838feb36297915e3cdf8749d944
2015-10-26fix includes that are not stand-aloneNorbert Thiebaud1-4/+4
includes should be able to be included on their own fix some of the ones that do not respect that rule. Change-Id: Id161224a1978461d3cea43252f232f18888a4f61 Reviewed-on: https://gerrit.libreoffice.org/19612 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-20convert com::sun::star->css in include/basicNoel Grandin8-45/+44
Change-Id: I40d092d1ae1391ce99d01a7e0c6cd0432a2696ca Reviewed-on: https://gerrit.libreoffice.org/19457 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann10-66/+66
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-2/+2
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-09-30Fix typosAndrea Gelmini1-1/+1
Change-Id: Ia8b2176a439742769e61fb6a981000f316033071 Reviewed-on: https://gerrit.libreoffice.org/18954 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2015-09-03basic: remove over-engineered XEnumeration serviceMichael Stahl1-1/+0
... that was causing duplicate WeakImplHelper symbols now. Change-Id: Ibbf84a2059f30bfeb5c265adcafb4b56d2534dc8
2015-08-31New identifier for save/open macro with user defined typesLaurent Godard1-1/+0
no version bump but B_USERTYPE defined fix test from commit de26ef85 that should be nMaxRecords tested full round trip on password protected document (ie. use binary storage) master --(0)--> master --(1)--> libreoffice 4.4 --(2)--> master --(3)--> master (0) in master, User type supported, big module supported (1) in libreoffice 4.4, user type not supported, big module supported, no loss of code (2) in master, user type not supported, big module not found, no loss of code it is OK as libreoffice 4.4 saves to LegacyVersion (3) in master, User type supported, big module supported (all is restored) it is OK as module was saved with CURRENT_VERSION (see sbxmod.cxx) Change-Id: I237cf7de70adf1a755be1bc30987b21c43b6ab35 Reviewed-on: https://gerrit.libreoffice.org/17871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-03remove some unused typedefsNoel Grandin1-1/+0
Change-Id: I98c1e7eaa66b7afb05255a017a3de54714637501 Reviewed-on: https://gerrit.libreoffice.org/17491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-28inline "old" SbERR constantsNoel Grandin1-130/+0
Change-Id: I3e6665351de97692ae70207e8b623ad008ca8c9a
2015-07-28inline the "old" SbxErr constantsNoel Grandin1-21/+0
Change-Id: I1c54c792e0397d61c97d5067963b343f912275fc
2015-07-28convert SbxFlagsBits to scoped enumNoel Grandin3-54/+36
Change-Id: I3dd699ca675be2ff4a8bfb7938bd5d43719b304c
2015-07-27inline a bunch of use-once macrosNoel Grandin1-9/+7
no point in having a macro unless it's actually going to reduce the number of lines of code Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
2015-07-19sal_uIntPtr to sal_uInt32, for consistencyMatteo Casalin3-8/+8
Change-Id: Ib78dce61e8fb8c8e3bf8c7a2b02966100a4db0e8
2015-07-17basic: try to prevent MSVC from generating copy assignmentMichael Stahl1-0/+3
Change-Id: I7232f69a465b1acaf069005b3695039bdc96c7a3
2015-07-17basic: replace boost::ptr_vector with std::vector<std::unique_ptr>>Michael Stahl1-3/+3
Change-Id: I96ea97c1df7903a28387d8e1171075be55a80ca7
2015-07-15loplugin:unusedmethods basicNoel Grandin7-40/+0
Change-Id: Iddfbde451088750f8c74f3ac72c35b5ccfbe0ab1 Reviewed-on: https://gerrit.libreoffice.org/17044 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-07Replace GetAppData(SHL_IDL) with a static pointer varStephan Bergmann1-2/+0
Change-Id: Ia1e22ff95457a958ef26974091aa2092b32505bd
2015-07-03Fix typosAndrea Gelmini1-1/+1
Change-Id: Ie2bbe020fc6e3a4a4f913208c245f395849bb9ee Reviewed-on: https://gerrit.libreoffice.org/16708 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-24remove SFX_NOTIFY macroNoel Grandin3-9/+5
it has not served any purpose since we switched to using normal C++ RTTI for the SfxHint objects Change-Id: Ic81353bcb7863ce892eb75296248ca14d8fd6c86
2015-06-04convert PropertyMode to scoped enumNoel Grandin1-5/+5
Change-Id: I9b0bbf6273aa18ae918d1d69af5dcc7652181f5c
2015-05-19basic: used typed LINKsNoel Grandin1-9/+9
Change-Id: I8770a782e7ff5529e30aee13558711bdd8a4070d
2015-05-07Remove SvStorage aliasStephan Bergmann1-1/+1
Change-Id: Id07ace147ff4fd4a17d05ba3cce6408def05c9c7
2015-04-30Gradually typed LinkStephan Bergmann1-9/+9
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-28SbModule::Run return value is unusedStephan Bergmann1-1/+1
Change-Id: I7cd697d944dc0efbd35b852fc553ba85bc88c15e
2015-04-19callcatcher: update unusedcodeCaolán McNamara1-2/+0
Change-Id: I4b2a7ea03aafbfbf1fece1533da801a4326d80f9
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin5-13/+13
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-13loplugin:staticmethodsNoel Grandin3-4/+4
Change-Id: If97f01a05294fa7efd59a8934c7b6f65cda5084a
2015-04-13BASIC: Merge BasicLibs with BasicManagerImpl and use boost::ptr_vector.Arnaud Versini1-3/+1
Change-Id: I36fc3ce26b129b11fc2d6d2829a146b3fa57b783 Reviewed-on: https://gerrit.libreoffice.org/15267 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann1-1/+1
Change-Id: I6dd7c7fbaf0d4b22abba0a7b1f5e37f0a46d0747
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-1/+1
Change-Id: If774a3b4e2e993d26dd9b5777a55665a330b2abe
2015-03-25Typo: formated->formattedJulien Nabet1-1/+1
Change-Id: Iefd4d375a0dfb36732233852f906c6b85dccc2a5
2015-03-25new constantfunction lopluginNoel Grandin1-1/+0
Change-Id: Ie9b7a0c41fc4dbd2560ceff6bae9ab85357f518b
2015-02-16boost->stdCaolán McNamara2-3/+3
Change-Id: I44b208a2c5c5bf73ac025462c9f7bd499ed0a49b
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara1-3/+2
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a