summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/node.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-12-18convert ND constants to o3tl::typed_flagsNoel Grandin1-30/+31
Reviewed-on: https://gerrit.libreoffice.org/31343 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit b8aa1def37b62091f15bf09529104ca38333d5f5) Change-Id: I5fe3df5515017ec24db1184e8aca823714fcfdb3 (cherry picked from commit 1c4771b5134911c1e0b1211ddaeecabbb3656716)
2016-11-18includes should be at the top of the fileNoel Grandin1-2/+1
not randomly scattered through the code found with something like: git ls-files *.cpp | xargs grep -Pzl "(?s){.*#include" Change-Id: I9c242fa4ef99e8677f2800d7ec9f16d16e488351 Reviewed-on: https://gerrit.libreoffice.org/30952 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-19coverity#1371301 Missing move assignment operatorCaolán McNamara1-1/+1
Change-Id: Ibd6d4b52c24989af6872b4eb3c6c585c1e24a4db
2016-10-12convert PD_ constants to typed_flagsNoel Grandin1-2/+2
Change-Id: Ia651dfae33cb1e901f124541a1e12f240d4a7458
2016-10-12convert GET_POOLID constants to scoped enumNoel Grandin1-2/+2
Change-Id: Ifc54789d12d0b024ed28f13ec78b5c10afa902de
2016-09-21tdf#102233: avoid infinite loop recursion in IsProtect node methodJulien Nabet1-2/+6
See https://bugs.documentfoundation.org/show_bug.cgi?id=102233#c5 Change-Id: Ic985662011b33d4b20b7c60df33c9ecc97326e85 Reviewed-on: https://gerrit.libreoffice.org/28972 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-08loplugin:redundantcast: redundant static_casts in swStephan Bergmann1-3/+3
Change-Id: I09c1ebaf5742e983ee05942a4c7c17c6aa5179cc
2016-04-18clang-tidy performance-unnecessary-copy-initializationNoel Grandin1-2/+1
probably not much performance benefit, but it sure is good at identifying leftover intermediate variables from previous refactorings. Change-Id: I3ce16fe496ac2733c1cb0a35f74c0fc9193cc657 Reviewed-on: https://gerrit.libreoffice.org/24026 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-22loplugin:constantparam in swNoel Grandin1-4/+3
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
2016-03-09loplugin:constantparam in swNoel Grandin1-5/+4
Change-Id: I8fa1af4a34770b71f6f4bb28b3313edf4875322b
2016-03-04loplugin:unuseddefaultparam in swNoel Grandin1-3/+3
Change-Id: I1a8a25c09ae0c8ba39fcedb032562df93fdd6ba4
2016-02-29loplugin:unuseddefaultparam in sw (part3)Noel Grandin1-9/+4
Change-Id: Ibff7ac9718929349ee7daa3febb0f8fe4a9fa4db
2016-01-21loplugin: unused return valuesNoel Grandin1-2/+1
Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-25bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-pointRobinson Tryon1-88/+88
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
2015-11-115th step to remove tools/rtti.hxxOliver Specht1-1/+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-11new loplugin: memoryvarNoel Grandin1-6/+5
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-70/+70
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-02sw: prefix members of SwContentNodeMiklos Vajna1-9/+9
Change-Id: Iecb7cd82d88bd1ee82f074e17319e5ce095e2690
2015-10-30sw: prefix members of SwNodeMiklos Vajna1-37/+37
Change-Id: I3ce33c8ea0c09948785621785d199ece6eda128a
2015-10-29sw: prefix members of SwStartNodeMiklos Vajna1-6/+6
Change-Id: Ibb3b33681f4c33794e07b40989709e8f292f2084
2015-10-06 tdf#94559: 4th step to remove rtti.hxxOliver Specht1-2/+2
replaced use of PTR_CAST, IS_TYPE, ISA in idl, editeng, sc, sd, sw, sfx2, sot, starmath Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653 Reviewed-on: https://gerrit.libreoffice.org/19132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-09-29Renamed wrongly prefixed boolean variablesStefan Heinemann1-9/+9
Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-08-20loplugin: defaultparamsNoel Grandin1-1/+1
Change-Id: I36c7086117112d35df98c05030c965c21d9330ac
2015-07-06improve the returnbyref lopluginNoel Grandin1-11/+11
Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-25remove custom RTTI from SwIndexNoel Grandin1-1/+1
not being used Change-Id: I615558e3c0abe7284b9abb535ee8f15c844c846e
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-6/+6
Change-Id: I8d27ae80d209159690182ab91e272cf00e9f863d
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-241/+241
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-18tdf#89783: Allow more than 64k PageDescsKatarina Behrens1-2/+2
+ adjust related code using the functionality Change-Id: I6fa4ad04137643009ee39522c36d6c9e6f3d2502
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-1/+1
Change-Id: I0e42e757a6f7b0c28758193aad8b3cb01607b8b1
2015-05-09sw: remove debug codeMichael Stahl1-17/+0
Change-Id: I187c0b2bd2f9e4ddeeac80b6046c25d5cf674d71
2015-05-09sw: fix assert with frames anchored in redlines on rhbz490395-1.odtMichael Stahl1-0/+47
SwRangeRedline::Show() will move nodes around in the nodes-array, which means that using SwNodeIndex as a key in a map that has a lifetime not limited by the stack is a bad idea, as the map will become unsorted. Remove SwFrmFmtAnchorMap from SwDoc and replace it with new SwNode::m_pAnchoredFlys to do the same mapping. (regression from 738fb2ad77e5a1a4d6e2dc540886a17f4527e4db) Change-Id: I396d92b9d0b2045e98bad6d0b374303cd4e62b59
2015-05-05loplugin:staticmethodsNoel Grandin1-2/+2
Change-Id: I90dd921077bbfc57200e398e7959306f26c65cfe
2015-04-24related: tdf#90820 refactor SwFrm destructionMichael Stahl1-1/+1
Move all logic out of destructors, so it cannot happen any more that members of a sub-class are accessed from a superclass destructor, when those members are already dead. Logic is now in virtual DestroyImpl() methods. All SwFrms must be deleted with SwFrm::DestroySwFrm(). Change-Id: Icec5b12e12d5a2d955cb5844d7d4f7ac85ab79cd
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann1-4/+4
Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb
2015-03-24rename GetDepends->HasWriterListener and make it a boolBjoern Michaelsen1-4/+4
Change-Id: Idc090c9e105f24ef91ef123db03db6d6e67ed1d4
2015-03-20tdf#89756 Switched postfix to prefix operator++/--Gulsah Kose1-3/+3
Replaced postfix to prefix operator++/-- to improving performance Change-Id: Iaee7b22dbe21441b82612ae3a3e336cf56eb280f Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/14903 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-19move SwIterator into calbck.hxxBjoern Michaelsen1-1/+1
Change-Id: Icdcd46d392bbf1dbe45448328c310d9a327ba60d
2015-03-16core/docnode: dont use 'shortcut' that is longer than the originalBjoern Michaelsen1-2/+2
Change-Id: Idf0bdea2ffb987859e413f2cea4eaa0d97d2ba7b
2015-03-01Extract SwNode::dumpAsXml() from nodedumpMiklos Vajna1-0/+32
Change-Id: Icb6221c82e5040f7e9e9545e75c26267454a10eb
2015-03-01Extract SwStartNode::dumpAsXml() from nodedumpMiklos Vajna1-0/+52
Change-Id: Ib4d3ab9014ccab7c226a3aaa4b70fd1bf1af3e33
2015-02-18boost->stdCaolán McNamara1-8/+8
Change-Id: I412137e7e7b9b2b87f401bc140a9499d1fc012c6
2015-01-22Some more loplugin:cstylecast: swStephan Bergmann1-2/+2
note the two TODOs about suspicious casts Change-Id: I324fa05b30a5c8aa1d9e9a6d488a1e295226e788
2015-01-16fdo#39440 sw: reduce scope of local variablesMichael Weghorn1-3/+5
This addresses some cppcheck warnings. Change-Id: I4c55c109f81407d5383932e4254e0f5f61d12cd7 Reviewed-on: https://gerrit.libreoffice.org/13939 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2014-12-27fdo#84714 ODT export: write <loext:table> inside <draw:custom-shape>Miklos Vajna1-0/+3
Change-Id: I543ec24f8825bcc7c35acc106402f4fc6b4b5d79
2014-11-25loplugin: cstylecastNoel Grandin1-3/+3
Change-Id: I8c5d2302695d22e4fe976a370b75b26dec373024
2014-11-21do not use sal_uInt16 for indexing stl vectorLuboš Luňák1-5/+5
Change-Id: I1a0087211bfd4d73cd5af781f5f3117b440fb188
2014-11-19Use SwNode::GetTxtNode()Miklos Vajna1-3/+2
Change-Id: Icf3e1013d5eba5702badf19aa6c1f5e6708ed154
2014-11-18loplugin: cstylecastNoel Grandin1-40/+40
Change-Id: I939e4af2ca27b34f78d079bb1e209d9b118eed01
2014-11-16sw: convert 'a ? b : sal_False' to 'a && b'Matteo Casalin1-3/+1
Change-Id: I4b7829a1abe1459f2e4915159588fd3e16a14eea
2014-11-16sw: avoid 'condition ? sal_True : sal_False' expressionsMatteo Casalin1-2/+2
Change-Id: Idd6c9f9752659fc5da575e5a3f0ffc15ce5dbe1c