summaryrefslogtreecommitdiff
path: root/vbahelper
AgeCommit message (Collapse)AuthorFilesLines
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin2-4/+4
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-23loplugin: cstylecastNoel Grandin2-5/+5
Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf
2014-10-22Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTINGTor Lillqvist1-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
2014-10-15More -Werror,-Wunused-private-fieldStephan Bergmann3-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
2014-10-11convert SFX_CALLMODE constants to SfxCallMode enum classNoel Grandin1-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>
2014-10-10cid#1244949 Uncaught exceptionNoel Grandin1-1/+1
Change-Id: Ic33d60a435ee875e8e342420046aae436739c123
2014-10-06use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara1-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
2014-10-01fdo#82577: Handle TimeNoel Grandin1-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>
2014-09-29vbahelper: std::auto_ptr -> std::unique_ptrStephan Bergmann4-7/+5
Change-Id: Ic1b28e7f79cc7dad6a045eb64e5191991533990d
2014-09-23fdo#82577: Handle WindowNoel Grandin2-6/+6
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-15VbaNewFont apparently does not inherit XHelperInterfaceStephan Bergmann11-24/+10
...and thus should simply derive from WeakImplHelper1 instead of InheritedHelperInterfaceImpl1? Change-Id: I0cb023a905e93bf9c223676c964f039ac7eee7e0
2014-07-24Drop unused #includesTakeshi Abe1-2/+0
Change-Id: I77ca957204bacee95e32a7f2a54c9311002aeef9
2014-07-22callcatcher: update unused codeCaolán McNamara1-6/+0
Change-Id: I1dd1b40d807c7c9d9b145aca9f69a67d786ec5ff
2014-07-22Remove unused #includesTakeshi Abe6-6/+0
Change-Id: I96775ac9a8624e12974c78c6abb93ddd80eed567
2014-07-18some other coverity fooCaolán McNamara1-22/+8
Change-Id: Ide5a10d7f9c45970c3cc5c78213c151c85ff4570
2014-07-18fix indentCaolán McNamara1-11/+7
Change-Id: I799d7a7989209e9fab03fbc79439b64e6c689499
2014-07-10coverity#707480 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I27732316c42face6750ffb7eccc238f66519e4e6
2014-07-09coverity#707382 Uncaught exceptionCaolán McNamara3-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
2014-06-27remove SFX_APP() macro that was a mer wrapper for SfxGetApp()Norbert Thiebaud1-2/+2
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold6-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
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2-2/+2
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin17-57/+53
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-13Typo: shoud -> shouldJulien Nabet1-1/+1
Change-Id: I44f4fb9682a56af6654e1f7462dc37557d60e735
2014-05-08vbahelper: sal_Bool->boolNoel Grandin9-39/+67
Change-Id: I9fd549bd4ad8f67f83db6a864aa86d0c7310d43e
2014-05-02vbahelper: sal_Bool->boolNoel Grandin15-58/+58
Change-Id: Ibf21ce17a8e743701f1011e1620f26b93f952991
2014-04-24coverity#707469 Uncaught exceptionCaolán McNamara1-1/+3
Change-Id: I93bb55b339dcc6a177d7403760703a895cebc805
2014-04-24coverity#707474 Uncaught exceptionCaolán McNamara2-2/+4
Change-Id: I42b3dd934f7aadd2cd7d71e7e22242b504af8825
2014-04-24hmm, need a rethink on these exceptionsCaolán McNamara1-4/+4
Change-Id: I0d91e142d719b946f65ed704b06371d00534ad78
2014-04-24coverity#707475 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I4c9da1bb21e55578fc81e4c5b3133cbd639711cc
2014-04-24coverity#707476 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I667867d0333d9d82db3218e2645741a2327cd8fe
2014-04-24coverity#707477 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: Ie91515b0cd0fcf5a1b3bc7b2d394927dafa851ea
2014-04-24coverity#707478 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: Ib967053b7d306d18c69843da39646d69540f081f
2014-04-24coverity#707479 Uncaught exceptionCaolán McNamara1-1/+3
Change-Id: I4a1c43dab2814ed66f1785b91ead76407e32de46
2014-04-23coverity#707461 Uncaught exceptionCaolán McNamara2-2/+2
Change-Id: I73d469744605e788c3b5710b38ef846a444cff68
2014-04-19fixincludeguards.sh: scThomas Arnhold1-1/+1
sorry, huge one...
2014-04-15whitespace for include statementsThomas Arnhold2-8/+8
Change-Id: I76bd0ef07a2fa134e948724cecdf539ffe6ccb8a
2014-04-14Clean up function declarationsStephan Bergmann1-5/+2
Change-Id: I0602166c8e6485b68e06bbcc9f0064938facd3fa
2014-04-14no need for those static stringsThomas Arnhold12-101/+62
2014-04-12cppcheck: multiCondition, remove 2 duplicate "else if" blocksJulien Nabet1-4/+0
Change-Id: I538bacd0e52a5e7d5df9847ad4632e02124aeb95
2014-04-05fix colonCaolán McNamara1-1/+1
Change-Id: Ibeaa20a99d7b027dee26e591bb19bd61a3aed8a2
2014-04-05coverity#708570 Uninitialized scalar fieldCaolán McNamara1-1/+3
Change-Id: I0b5a12181d67db6b096807b7b32836214c71ebc8
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin15-49/+49
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03vbahelper: sal_Bool->boolNoel Grandin2-9/+9
Change-Id: Ic4bcc2fa02426e1995d08a6992cc5b35777c1c9a
2014-04-02coverity#1194895 Logically dead codeStephan Bergmann1-3/+1
Change-Id: I24e8ee88a1efdfaa7cedf996bd2d3bb05fbd4dc6
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann1-1/+1
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann37-443/+443
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-19coverity#982489 Unchecked dynamic_castCaolán McNamara1-1/+1
Change-Id: I6211295884a2ddd4d2b1bfa2a9e1c2d31e6559da
2014-03-13xmloff,vbahelper: prefer passing OUString and OString by referenceNoel Grandin5-10/+9
Change-Id: I8b7e4284c122549c03edaa7f3963cbfb2024b3fc
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann1-2/+2
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann69-830/+830
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3