summaryrefslogtreecommitdiff
path: root/sw/source/core/bastyp/swcache.cxx
AgeCommit message (Collapse)Author
2018-11-17Simplify containers iterations in sw/source/coreArkadiy Illarionov
Use range-based loop or replace with STL functions Change-Id: I53f9d76b5232488856098c86c6d51decc08a6b64 Reviewed-on: https://gerrit.libreoffice.org/63490 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-03Add missing sal/log.hxx headersGabor Kelemen
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. This is a continuation of commit 6ff2d84ade299cb3d14d4110e4cf1a4b8070c030 to be able to remove those unneeded includes. This commit adds missing headers to every file found by: grep -FwL sal/log.hxx $(git grep -Elw 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF|SAL_DETAIL_LOG_STREAM|SAL_WHERE|SAL_STREAM|SAL_DEBUG') to directory sw Change-Id: I1ede3f86e390bfec1a2d3ee8e8bb6ec67083b194 Reviewed-on: https://gerrit.libreoffice.org/58372 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-03-28loplugin:virtualdown in swNoel Grandin
Change-Id: Ia4053970a23d62ac7483f18d6caa559ddf43b176 Reviewed-on: https://gerrit.libreoffice.org/51988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-02-05sw: convert some SAL_WARN to assert in SwCacheMichael Stahl
Change-Id: Id148253a2f2c60912cbfbe9628f5ddec56a48952 Reviewed-on: https://gerrit.libreoffice.org/49165 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-02-02sw: remove very dubious DBG_UTIL codeMichael Stahl
This looks like some defensive programming to avoid a crash only in DBG_UTIL mode, which is a pretty moronic thing to want to do. Change-Id: I93c791a76cf9114359be3fef6b604c86ec49da51
2018-02-02sw: convert OSL_ENSURE to assert() in SwCacheMichael Stahl
Change-Id: I66075a8f77a3b399116ddd0493037c1427dfd7d2 Reviewed-on: https://gerrit.libreoffice.org/49153 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-02-02ofz#5435 sw: fix SwCache::Insert() stale pointersMichael Stahl
If SwCache::Insert() happens to delete the object that m_pFirst or m_pRealFirst point to, which is unlikely as it means every other object is locked, then these pointers must be updated. This sometimes happens in the bugdoc after scrolling around for some time. Change-Id: I13f04d28c37969469efa4e1109c7f5b751ceba96 Reviewed-on: https://gerrit.libreoffice.org/49151 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-02-02ofz#5435 sw: fix crash during painting of excessively nested tablesMichael Stahl
Could not find a single instance where the return value of SwCacheAccess::Get() was actually checked, so let's have SwCache::Insert() automatically resize the cache, since it starts out with just 100 capacity; also, check that the size doesn't overflow. Change-Id: I3cd7cf2aea79e01816b12e4dbaf79c3bf82bf8fe Reviewed-on: https://gerrit.libreoffice.org/49140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-11-22Fix typoAndrea Gelmini
Change-Id: I591214b246f7702e52f71b95cdc2255bc296224b Reviewed-on: https://gerrit.libreoffice.org/45063 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-04-10tdf#39468 Translate German comments in swJens Carl
Translate German comments and terms in sw/inc/ and sw/source Change-Id: I1330a358db2c6cdc0512009befeafa0582ac4877 Reviewed-on: https://gerrit.libreoffice.org/36288 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-06-13sw: prefix members of SwCacheAccessMiklos Vajna
Change-Id: Ia18ad7e283898418118237c1997a6ee72c468341 Reviewed-on: https://gerrit.libreoffice.org/26209 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-06sw: prefix members of SwCacheMiklos Vajna
Change-Id: I2896dffca4d13dd95612fa463c66eb5a769d5650 Reviewed-on: https://gerrit.libreoffice.org/25952 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-04-22Avoid reserved identifiersStephan Bergmann
Change-Id: I27ff0f4f0eb395d7e0a60dd604758c220a3134c4
2016-02-29loplugin:unuseddefaultparam in sw (part2)Noel Grandin
Change-Id: I7eefd83d7f84c0a6301fd3ba37d77463d809e5f9
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
2015-11-04sw: prefix members of SwCacheObjMiklos Vajna
Change-Id: I416c43f5f6819029e279bc2f5fb696b59917ef06
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann
Change-Id: I0e42e757a6f7b0c28758193aad8b3cb01607b8b1
2015-01-07sal_uInt16 to size_t, remove unneeded downcastMatteo Casalin
Change-Id: I48689ad3a974d5bc2386766b55045e4456a0d72c
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-10-29sw: translate "Rekursiv"Michael Stahl
Change-Id: Ib40dcbda3b2b9c8c196303f3f0c49e0ab05e0404
2014-04-30sw: sal_Bool->boolNoel Grandin
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
2014-02-16sal_Bool to boolMatteo Casalin
Change-Id: Iecd2e0fcf3b10fc60b814121fbfe1ba9234c9109
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-04fdo#39674 fix some spellingThomas Arnhold
Change-Id: I72e497fb97edf8782c69000576f42896594e1556
2013-09-07remove/add blank lines in sw/source/corePhilipp Riemer
Change-Id: I4d0aa521fc4c24f954d2636aa68e968456a829e7 Reviewed-on: https://gerrit.libreoffice.org/2879 Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com> Tested-by: Philipp Riemer <ruderphilipp@gmail.com>
2013-05-15OSL_TRACE -> SAL_INFOStephan Bergmann
...to work around MSVC 2008 Express (at least) "warning C4503: 'rtl::operator +' : decorated name length exceeded, name was truncated." Change-Id: If6838aaa45ecfc0c092f95228e8616e69ea1f0e0
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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-11fdo#57950: Removed some chained appends from swMarcos Paulo de Souza
Change-Id: I5b78b4a8f2fc0fb0c4a67042ac4924e375c2d63a
2012-12-15Some cppcheck cleaning in sw/Julien Nabet
Change-Id: I73365ed32a47e41c6f58191ee111d9b05741b421
2012-11-30re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2012-10-22loplugin: various warningsCaolán McNamara
Change-Id: I605bffb518d804ee69edda5e7641e13e4c14ef01
2012-09-25sal_Bool to boolTakeshi Abe
Change-Id: Ib9a6f3ecbe38cdad6e28b4d8a9ae13d1f5bc4265
2012-09-11-Werror,-Wunused-private-field (various sw)Stephan Bergmann
Change-Id: Ib2becb2af810da0fa3d24bd0aa21887d41e2f34c
2012-07-25Convert SvStringsISortDtor from an SV_DECL_PTRARR to a o3tl::sorted_vectorNoel Grandin
Change-Id: Ie1fa9b3cc2aef83ae9a82fbc110a08b2f298daef
2012-07-05sorted all include statements alphabetically in sw/source/core/bastyp/Philipp Riemer
* fixing the missing include statements in shellres.hxx (bjoern-michaelsen) Change-Id: I976586b346facf38905391bd336b7f08b218f4a4
2012-07-02Moving code for better readability in sw/source/core/bastyp/Philipp Riemer
Change-Id: Ibee47704db9c4fa2a15004c1ba7566dae2aa1d1c
2012-07-02Code cleanup and translation of German comments in "sw/source/core/bastyp/"Philipp Riemer
Change-Id: I9ba6f198fbc0f1a4655a57116f53719ea7d38fbd
2012-05-25SwCache: fix non-DBGUTIL memory leak in previous commitMichael Stahl
2012-05-25Inline SV_DECL_PTRARR_DEL(SwCacheObjArr) into a std::vectorNoel Grandin
..inside of the SwCache class. Change-Id: Ie8cf55c28a04d3776b99a8608880ac7a19f748b2
2012-04-24DBG_UTIL vs OSL_DEBUG_LEVEL confusionStephan Bergmann
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2011-12-05Avoid mixed signed/unsigned warning.Stephan Bergmann
2011-11-27remove include of pch header from swNorbert Thiebaud
2011-11-24sw: replace abuses of OSL_DEBUG_LEVEL with DBG_UTILMichael Stahl
OSL_DEBUG_LEVEL is set by make debug=t, which should never result in ABI incompatible objects.
2011-11-03ByteString->rtl::OStringCaolán McNamara
2011-10-20SvUShorts -> std::vectorDaniel Di Marco
2011-08-02SwCache: fix build with dbglevel=2Miklos Vajna
2011-07-27ByteString->rtl::OStringBufferCaolán McNamara
2011-06-08Remove the remaining debug.hxx includes in writerJacek Wolszczak