summaryrefslogtreecommitdiff
path: root/idl/inc
AgeCommit message (Collapse)AuthorFilesLines
2015-04-07loplugin:staticmethodsNoel Grandin2-7/+7
Change-Id: Ibaad2adabecb878411fdd66383bca91f034477af
2015-01-28remove unused typedefsNoel Grandin3-6/+0
found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-26followup code removal after changing virtual methods to non-virtualNoel Grandin1-1/+1
This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin2-2/+2
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
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin1-4/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava1-1/+1
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-22callcatcher: update unused codeCaolán McNamara5-8/+0
Change-Id: I96b4d44e44389245f3ccc4a08198676461c6a38b
2014-10-16Remove more unused idl partsStephan Bergmann6-104/+0
Change-Id: Id78de487b36a1c939dc3a4a5b38ab0b77999478c
2014-10-16Strip svidl down to what is still usedStephan Bergmann9-114/+34
...the generated .ilb, .lst, and .sid outputs requested by SdiTarget were apparently unused. Change-Id: I1abb2abc7945070451fce4a98a11d955515e3f63
2014-10-15More -Werror,-Wunused-private-fieldStephan Bergmann1-1/+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-09-29loplugin: cstylecastNoel Grandin1-1/+1
Change-Id: I31bbeb5f068754d6dc77c22d759058089b03c9b1
2014-09-22remove unused fields pName and pMethodName in SfxSlot classNoel Grandin1-3/+1
Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111
2014-05-28Fix memory leakStephan Bergmann1-0/+2
Change-Id: Ie12862f8df701298db51ed45b5c24814a6f94def
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold1-1/+1
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-08idl: sal_Bool->boolNoel Grandin10-213/+214
Change-Id: I8b15c97b1fcc6acaf567e8b1d2d37cbc99687a9d
2014-04-19fixincludeguards.sh: idl and idlcThomas Arnhold11-32/+32
Change-Id: I665e901eb6f65308b8f130da1c6da95bc3255490
2014-04-07Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann6-23/+19
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
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-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann6-71/+71
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-17Avoid duplicate symbols in libmerged for Windows too.Matúš Kukan1-0/+2
This is working version of fc27a685d466dc380a8b68cd48f47db632ed3693 Change-Id: I48e861b5b7692ea051edf52d7ad9cc54ca989e22
2014-03-14Revert "Avoid duplicate symbols in libmerged for Windows too."Matúš Kukan1-2/+0
Forgot to test properly on Windows :-(. This reverts commit fc27a685d466dc380a8b68cd48f47db632ed3693.
2014-03-14Avoid duplicate symbols in libmerged for Windows too.Matúš Kukan1-0/+2
Export these symbols from sfx library. For cases when we link together more libraries, there are more symbols, so I've kept __attribute__((__weak__)) hack there. Change-Id: I8b7f6fc9bea479dca5062344c04b74c1f3eb36b2
2014-03-08coverity#707931 Uninitialized scalar fieldCaolán McNamara1-1/+5
Change-Id: I5c34f9bc96ee23fca6182740e3279de1485c61ea
2014-02-12remove SvStream::operator>> methodsNoel Grandin1-1/+1
in favour of ReadXXX methods. Change-Id: Ic2c0a7b6b92ff4c236ae99b39d77f3d935b301e3 Reviewed-on: https://gerrit.libreoffice.org/7915 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-11coverity#707930 Uninitialized scalar fieldCaolán McNamara1-13/+20
Change-Id: Ib652a8a1f81dde1f5ac3b6b7b73376c73777247c
2014-01-22remove SvStream::operator<< methodsNoel Grandin1-1/+1
.. and convert the last few places still using those methods. Change-Id: Id2cd8f9c0dd281df43af439d4fef65881f34a6fd Reviewed-on: https://gerrit.libreoffice.org/7495 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-16convert SvStream::operator<< overloads to more explicit methodsNoel Grandin1-7/+7
This is in preparation for more conversion of SvStream::operator<< calls to use more explicit method names. This converts the subclasses that have their own convenience overloads of operator<< to use normal methods. Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2013-11-10clean up #ifdef ICC codeMichael Stahl1-3/+0
According to the dmake documentation, ICC refers to Visual Age C++ for OS/2, which is not a supported compiler (or platform). Change-Id: Ic9e23bc7c44de110a3a312bd007beda3b660927d
2013-11-07idl: fix out of bounds string accessesMichael Stahl1-1/+3
Change-Id: Id0d07ff9bcd4858cb74458eaf13fb9386387f455
2013-10-20drop unnecessary tools/string includesCaolán McNamara3-3/+2
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-09-17convert IDL module from String to OUStringNoel Grandin4-20/+20
Change-Id: Idf8e0e02ee2fde23959a281cc6ffa1a43ee7f239
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák10-99/+99
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-25fdo#39445 writing out tools/fsys.hxx (idl)Krisztian Pinter1-16/+9
Removed uses of fsys from database.cxx, command.cxx, module.cxx, svidl.cxx. Also removed a lot of cruft from svidl.cxx and command.hxx; unused variables and code relating to them, eg. variables aCxxFile, aHxxFile, aSrcFile, aODLFile. Changed some Strings to OUStrings in svidl.cxx and command.hxx. Change-Id: I708284f70435c8f65cdcfc954af43976e28b8c9d Reviewed-on: https://gerrit.libreoffice.org/2935 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-01-07Cleanup: #include <tools/gen.hxx>Matteo Casalin2-2/+2
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-08-15-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann1-2/+0
Change-Id: I6fc91959f024b9a1f9e8633af8e16048752f6bdc
2012-08-08STL'ify SV_DECL_IMPL_PERSIST_LISTNoel Grandin6-34/+35
Converts it to a template based on std::vector Change-Id: Id7f89f494164c61a3a573cff443ac0e0488e93f1
2012-08-05Remove unused macrosThomas Arnhold1-8/+0
Change-Id: I184a7f9c65dd762407b2431d9c6557e718b954b2
2012-08-01Remove unused code: those classes are unusedThomas Arnhold1-51/+0
Change-Id: Ibf41655d40c9534629bbb0dd5ae600791b42922d
2012-07-13re-base on ALv2 code. Includes:Michael Meeks10-230/+140
cws mba34issues01: #i117709#: make sure that parent of error message box is visible Patch contributed by Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1172346 i#119036 - improve user experience of certification dialog - only shown once Patch contributed by Oliver-Rainer Wittmann http://svn.apache.org/viewvc?view=revision&revision=1299727
2012-07-04removed unnecessary forward declarations of classTakeshi Abe5-5/+0
Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
2012-06-21re-base on ALv2 code.Michael Meeks1-23/+14
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-03-20Convert tools/table.hxx usage to std::map in IDL moduleNoel Grandin4-6/+9
Along the way, convert the table parameter passing to using references since we are never passing a null pointer.
2012-03-08Convert tools/table.hxx to std::mapNoel Grandin1-0/+1
Convert usage of tools/table.hxx to std::map in aPTable field of SvPersistStream class.
2012-01-27remove WriteSrc, WriteCxx and WriteHxxCaolán McNamara5-16/+0
I can't see that WriteSrc, WriteCxx WriteHxx are anything other than unused archaic remnants of the past.
2012-01-27ByteString->rtl::OStringCaolán McNamara6-34/+34
2012-01-26AppendParserString never definedCaolán McNamara1-1/+0
2012-01-26ByteString->rtl::OStringCaolán McNamara7-53/+62
2012-01-23make sot ByteString freeCaolán McNamara1-1/+1
2012-01-10Remove _SVSTDARR_STRINGSISORTDTORAugust Sodora1-1/+0
2012-01-05don't inherit from ByteStringCaolán McNamara4-16/+18