summaryrefslogtreecommitdiffstats
path: root/vbahelper
Commit message (Collapse)AuthorAgeFilesLines
* convert POINTER constants to scoped enumNoel Grandin2015-05-292-20/+20
| | | | | | | | Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com> Signed-off-by: Jan Holesovsky <kendy@collabora.com>
* Use typed Timer::SetTimeoutHdl LinkStephan Bergmann2015-05-051-4/+2
| | | | Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
* loplugin:staticmethodsNoel Grandin2015-05-054-7/+7
| | | | Change-Id: I86e2095bee82a2a6a28b8750e5a328c4d395e2aa
* convert STR_EVENT constants to scoped enumNoel Grandin2015-04-291-1/+1
| | | | | | | | - also add needed infrastructure to o3tl::enumarray so we can use std::find on it - move the Impl inside the .cxx file, no need to expose it in the header Change-Id: I7758a6175849f46723d97b1e657f846524c3b7cd
* loplugin:staticmethodsNoel Grandin2015-04-231-1/+1
| | | | Change-Id: Ib0c0841e48814d1a6e13bcd4575725d86ffa5e5e
* A UNO Any can't contain an AnyStephan Bergmann2015-04-083-3/+3
| | | | | | | | ...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
* fix shadow errorNoel Grandin2015-04-081-0/+1
| | | | | | | introduced by my commit 216fdcbdb4c17f349ffd68abd1f372bea3287fad "convert RECALCMODE_ constants to scoped enum" Change-Id: Ie7db053741205faeac70e3d21757774567f43ce0
* Change INetProtocol enumerators to CamelCaseStephan Bergmann2015-04-021-1/+1
| | | | | | ...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
* Change INetProtocol to scoped enumerationStephan Bergmann2015-04-021-1/+1
| | | | | | ...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-011-1/+1
| | | | Change-Id: I5be2bed2203cd3807d3d9659e09e5f60f7a3257c
* loplugin:constantfunction: variousNoel Grandin2015-03-241-13/+0
| | | | Change-Id: I6eddda9f4b31c7ce413c328b6a857a81bd222eed
* Fix various XServiceInfo implementationsStephan Bergmann2015-03-171-0/+6
| | | | | | ...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
* V801: Decreased performanceCaolán McNamara2015-03-069-14/+14
| | | | Change-Id: I97c7977fdfea57b5d1c45ce0c5902b74cc719db9
* V813: Decreased performanceCaolán McNamara2015-03-041-4/+4
| | | | Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
* loplugin:deletedspecialStephan Bergmann2015-02-071-9/+4
| | | | Change-Id: Id3f938a5794e29b14c6adca0065465f3412c5fe2
* Updated all precompiled headers.Ashod Nakashian2015-02-052-2/+1
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* new loplugin: change virtual methods to non-virtualNoel Grandin2015-01-262-8/+8
| | | | | | | | | | Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
* Drop unused comphelper::service_decl::component_getFactoryHelper paramsStephan Bergmann2015-01-201-5/+2
| | | | Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
* Some more loplugin:cstylecast: vbahelperStephan Bergmann2015-01-201-2/+2
| | | | Change-Id: I0b09119d0084ac4eed8d805c4fbca0afc013080d
* Fix typo code Resouce->ResourceAndrea Gelmini2015-01-192-3/+3
| | | | | | | Change-Id: I6e68c13e4513c2f8cc38e237646db7dffc88fe3b Reviewed-on: https://gerrit.libreoffice.org/13986 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#39440 reduce scope of local variablesMichael Weghorn2015-01-191-8/+12
| | | | | | | | | This addresses some cppcheck warnings. Change-Id: I1cd8b118e2598b8b18fb445851a3bb41e554267b Reviewed-on: https://gerrit.libreoffice.org/13967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typo comments Resouce->ResourceAndrea Gelmini2015-01-191-3/+3
| | | | | | | Change-Id: Ia3195a21ad46b4c9830ee6293135dfe5945986a2 Reviewed-on: https://gerrit.libreoffice.org/13985 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-025-9/+10
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* vbahelper: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-152-2/+2
| | | | Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba
* coverity#738950 Structurally dead codeCaolán McNamara2014-12-111-13/+26
| | | | Change-Id: If481c3dfd2c7c9b13bb7fa756156693fd02b8916
* fdo#38835 strip out OUString globalsNoel Grandin2014-12-081-5/+2
| | | | Change-Id: I1a435214af102461e02217f7d95248dac14e5f1a
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-052-4/+4
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* loplugin: cstylecastNoel Grandin2014-10-232-5/+5
| | | | Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf
* Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTINGTor Lillqvist2014-10-221-1/+1
| | | | | | | | Feature test macros that govern conditional compilation should be defined in config_*.h include files, not on the compilation command line. Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-153-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* convert SFX_CALLMODE constants to SfxCallMode enum classNoel Grandin2014-10-111-2/+2
| | | | | | | | | | and fix a couple of bugs in SC and SW where the call mode was being passed to the hints parameter by accident Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58 Reviewed-on: https://gerrit.libreoffice.org/11916 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* cid#1244949 Uncaught exceptionNoel Grandin2014-10-101-1/+1
| | | | Change-Id: Ic33d60a435ee875e8e342420046aae436739c123
* use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara2014-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
* fdo#82577: Handle TimeNoel Grandin2014-10-011-1/+1
| | | | | | | | | | Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* vbahelper: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-09-294-7/+5
| | | | Change-Id: Ic1b28e7f79cc7dad6a045eb64e5191991533990d
* fdo#82577: Handle WindowNoel Grandin2014-09-232-6/+6
| | | | | | | Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
* VbaNewFont apparently does not inherit XHelperInterfaceStephan Bergmann2014-09-1511-24/+10
| | | | | | | ...and thus should simply derive from WeakImplHelper1 instead of InheritedHelperInterfaceImpl1? Change-Id: I0cb023a905e93bf9c223676c964f039ac7eee7e0
* Drop unused #includesTakeshi Abe2014-07-241-2/+0
| | | | Change-Id: I77ca957204bacee95e32a7f2a54c9311002aeef9
* callcatcher: update unused codeCaolán McNamara2014-07-221-6/+0
| | | | Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
* Remove unused #includesTakeshi Abe2014-07-226-6/+0
| | | | Change-Id: I96775ac9a8624e12974c78c6abb93ddd80eed567
* some other coverity fooCaolán McNamara2014-07-181-22/+8
| | | | Change-Id: Ide5a10d7f9c45970c3cc5c78213c151c85ff4570
* fix indentCaolán McNamara2014-07-181-11/+7
| | | | Change-Id: I799d7a7989209e9fab03fbc79439b64e6c689499
* coverity#707480 Uncaught exceptionCaolán McNamara2014-07-101-1/+2
| | | | Change-Id: I27732316c42face6750ffb7eccc238f66519e4e6
* coverity#707382 Uncaught exceptionCaolán McNamara2014-07-093-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and coverity#707383 Uncaught exception coverity#707384 Uncaught exception coverity#707385 Uncaught exception coverity#707386 Uncaught exception coverity#707387 Uncaught exception coverity#707388 Uncaught exception coverity#707389 Uncaught exception coverity#707390 Uncaught exception coverity#707391 Uncaught exception coverity#707409 Uncaught exception coverity#707411 Uncaught exception coverity#707413 Uncaught exception coverity#707414 Uncaught exception coverity#706919 Uncaught exception coverity#706920 Uncaught exception coverity#706933 Uncaught exception coverity#706935 Uncaught exception coverity#706968 Uncaught exception coverity#706970 Uncaught exception coverity#706973 Uncaught exception coverity#706974 Uncaught exception coverity#707032 Uncaught exception coverity#707044 Uncaught exception coverity#738455 Uncaught exception coverity#738456 Uncaught exception Change-Id: Ifd4c0a2b6b4ddcb5df01a951b8d56435ee32d754
* remove SFX_APP() macro that was a mer wrapper for SfxGetApp()Norbert Thiebaud2014-06-271-2/+2
| | | | Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
* update_pch: add a bunch of pch filesThomas Arnhold2014-06-046-0/+285
| | | | | | | | | | | | | | desktop: 1m51s -> 54s framework: 1m55s -> 1m04s package: 32s -> 16s sdext: 1m31s -> 47s svgio: 32s -> 15s uui: 49s -> 20s vbahelper: 1m44s -> 27s xmlscript: 15s -> 10s xmlsecurity: 45s -> 23s Change-Id: Ia437969c091bf877983ababc5ea2d044bbc0bee0
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2014-05-232-2/+2
| | | | Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-2317-57/+53
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* Typo: shoud -> shouldJulien Nabet2014-05-131-1/+1
| | | | Change-Id: I44f4fb9682a56af6654e1f7462dc37557d60e735
* vbahelper: sal_Bool->boolNoel Grandin2014-05-089-39/+67
| | | | Change-Id: I9fd549bd4ad8f67f83db6a864aa86d0c7310d43e