Commit Graph

46 Commits

Author SHA1 Message Date
Stephan Bergmann
16f0c1315b loplugin:nullptr (automatic rewrite)
Change-Id: Ie5a37a49f1b1c08a20f89e167ca415fc645ed40d
2015-11-10 10:31:33 +01:00
Noel Grandin
95aad95fbe inline a handful of use-once #defines
Change-Id: Id2654555c4042f8c0bdbd6bab6507e705f08326b
2015-07-23 08:41:46 +02:00
Stephan Bergmann
0ef18e3531 loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I07d9567da23094836134a54afce660500bf1b3f5
2015-05-11 12:50:18 +02:00
Stephan Bergmann
6ff2d84ade Various #include <sal/log.hxx> fixups
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.  Cleaned up some, but something like

  grep -FwL sal/log.hxx $(git grep -Elw \
    'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx)

shows lots more files that potentially need fixing before the include can be
removed from rtl/string.hxx and rtl/ustring.hxx.

Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-22 09:57:47 +02:00
Noel Grandin
7b4ca582fc convert RegError to scoped enum
Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a
2015-04-09 08:41:11 +02:00
Noel Grandin
95600edeaf convert RegValueType to scoped enum
Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
2015-04-09 08:41:11 +02:00
Noel Grandin
1f34524746 remove reg keytype constants and related code
since we no longer support the RG_LINKTYPE stuff

Change-Id: If388ecfa0c475471b99b26155ad554ec702ca734
2015-04-09 08:41:11 +02:00
Stephan Bergmann
d963fd8425 Clean up C-style casts from pointers to void
Change-Id: I192bc9653d8492a850a5e259e15782bd3bb24922
2015-03-28 19:09:23 +01:00
Stephan Bergmann
4e3da621fe Some more loplugin:cstylecast clean-up
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2015-01-28 13:50:37 +01:00
Michael Stahl
6a0fe37dec sal: clean up public headers with include-what-you-use
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-11-17 11:06:53 +01:00
Brij Mohan Lal Srivastava
d32be3ace8 fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites.

Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-14 09:20:38 +01:00
Andrea Gelmini
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
Caolán McNamara
12bcfec04f markup with event type not checker type
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-11-05 14:58:00 +00:00
Michael Meeks
c44b8ce27f Translate German comments.
Change-Id: I1d7c1fa2fffe20a0bc60cf5533b8f8c28e360a1d
2014-09-17 14:16:16 +01:00
Thomas Arnhold
e7641433c0 convert int to bool
Change-Id: I4fb95c90dc1f188f8088ba1e4b7bfd0ebc59eb60
2014-08-17 05:15:19 +02:00
Norbert Thiebaud
e18e2b174c coverity#1213422 Tainted Scalar
Change-Id: I87e845f346fda225127e3439e768b31a8eb93be3
2014-07-04 20:30:59 +02:00
Michaël Lefèvre
453ee351f3 fdo#43157 : clean up more OSL_POSTCOND
Change-Id: Iaca31b4e12c258b762b3d88fbad0fb08b4f1fc16
Reviewed-on: https://gerrit.libreoffice.org/8832
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-04 07:23:43 -05:00
Alexander Wilms
75c8d59ddd Remove visual noise from registry
Change-Id: Ica0c7fe04dae3c52583cc2324bae1cfa5af1e197
Reviewed-on: https://gerrit.libreoffice.org/8292
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 09:27:30 -06:00
Noel Grandin
2c35fff7ec remove most use of RTL_CONSTASCII_USTRINGPARAM macro
This is largely unnecessary when working with OUString

Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
Noel Grandin
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
Jelle van der Waa
84f1f1d149 fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6
Reviewed-on: https://gerrit.libreoffice.org/4335
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-06-18 17:33:46 +00:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-04-07 14:23:11 +02:00
Arnaud Versini
f6acb53bb1 Replace usage of rtl/memory.h in registry with equivalent from string.h
Change-Id: I3c442b7c3743684f62cc5ffc3c4b0926ff0db999
2012-08-04 17:46:59 +02:00
Michael Meeks
ec54c0c45f re-base on ALv2 code. 2012-07-03 13:10:11 +01:00
Petr Vorel
37159db96f Remove unused code 2012-02-19 14:42:10 +04:00
Olivier Hallot
85d1ce27ad Fix for fdo43460 Part XXVII getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460

Part XXVII
Modules
padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2012-01-02 19:17:17 +01:00
August Sodora
443a7229f9 Remove uses of charAt 2011-12-01 11:10:28 +01:00
Norbert Thiebaud
ab407ad866 remove include of pch header from registry 2011-11-27 13:16:40 -06:00
Sebastian Spaeth
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
Matthias Huetsch [mhu]
6d03994e21 mhu22: resync to master repository (DEV300_m73). 2010-03-04 19:36:24 +01:00
Matthias Huetsch [mhu]
709ee7e9b0 mhu22: #i105430# #i108349# Fixed registry:ORegKey reference counting to avoid redundant closeKey()/flush() calls. 2010-03-04 15:19:41 +01:00
Jens-Heiner Rechtien
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Matthias Huetsch [mhu]
ffca8743e1 #i108349# Removed remaining redundant store.flush() calls. 2010-01-21 18:50:03 +01:00
Mathias Bauer
de0938bc20 performance bug in build system caused by too many flushed 2009-11-17 14:58:44 +01:00
Kurt Zenker
78a8eaf882 CWS-TOOLING: integrate CWS fwk121
2009-09-30 11:20:33 +0200 mav  r276548 : #i105387# allow manifest.xml have no ODF version attribute even for ODF1.2
2009-09-30 10:54:46 +0200 mav  r276545 : #i105387# allow manifest.xml have no ODF version attribute even for ODF1.2
2009-09-30 10:02:12 +0200 mav  r276543 : #i105082# integrating the fix from fwk117, since it is necessary for some scenarios fixed in this cws
2009-09-30 07:33:48 +0200 jsc  r276537 : #i105360# explicitly flush OStorageStream after write operations and OStoreFile when registry file is closed
2009-09-29 14:15:09 +0200 jsc  r276528 : #i105360# explicitly flush OStorageStream after write operations and OStoreFile when registry file is closed
2009-09-29 09:45:28 +0200 dr  r276507 : #i105325# set correct format while opening zip package
2009-09-28 18:46:45 +0200 mav  r276500 : CWS-TOOLING: rebase CWS fwk121 to trunk@276429 (milestone: DEV300:m60)
2009-10-14 16:58:08 +00:00
Oliver Bolte
e591a08dc3 CWS-TOOLING: integrate CWS sb103
2009-01-15 15:28:08 +0100 sb  r266375 : #i97629# set UNO_PATH in python start program and use it in bootstrap function in officehelper.py (and do not erroneously encode a vnd.sun.star.pathname URE_BOOTSTRAP value in tools::extendApplicationEnvironment)
2009-01-15 10:40:17 +0100 sb  r266338 : #i97424# explicit shut down of ImplImageTree singleton in DeInitVCL still required
2009-01-14 12:07:15 +0100 sb  r266276 : CWS-TOOLING: rebase CWS sb103 to trunk@265758 (milestone: DEV300:m38)
2009-01-14 08:53:02 +0100 sb  r266266 : #i96284# remove implementation of unused (but expensive) link feature; plus some general cleanup
2009-01-08 14:42:59 +0100 sb  r266010 : #i96683# enable dlclose for GCC 3 (based on a patch by cmc)
2009-01-06 14:18:23 +0100 sb  r265920 : #i97424# spurious unreferenced local variables
2008-12-19 15:33:39 +0100 sb  r265727 : #i57359# no need for a special glibc 2.2.4 based libgcc_s.so.1 for URE any more as the general one used for OOo is guaranteed to be based on at least glibc 2.2.4, anyway
2008-12-19 13:54:37 +0100 sb  r265724 : #i97424# clean up and speed up vcl ImplImageTree
2008-12-18 14:28:10 +0100 sb  r265690 : #i97132# spread usage of the rtl::Static pattern (patch by cmc)
2008-12-15 14:33:00 +0100 sb  r265499 : #i90492# generate UTF-8 encoded output (patch by tora)
2008-12-15 11:45:05 +0100 sb  r265469 : #i95593# -Djava.library.path to find libtest_javauno_any.so
2008-12-15 11:23:14 +0100 sb  r265468 : #i93769# it appears that Java nowadays expects file URIs in UTF-8, so ExternalUriReferenceTranslator.toExternal must not be called
2008-12-10 12:02:50 +0100 sb  r265164 : #i93219# use (corrected) signal handling instead of forking again (to avoid unintended generation of core files)
2009-02-12 09:18:09 +00:00
Vladimir Glazounov
4ca5c503bc CWS-TOOLING: integrate CWS jsc311 2008-10-01 08:05:58 +00:00
Rüdiger Timm
2b23cae12f INTEGRATION: CWS changefileheader (1.8.42); FILE MERGED
2008/04/01 15:23:07 thb 1.8.42.2: #i85898# Stripping all external header guards
2008/03/31 07:25:17 rt 1.8.42.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:47:37 +00:00
Oliver Bolte
b4dfba4c39 INTEGRATION: CWS pchfix02 (1.7.6); FILE MERGED
2006/09/01 17:33:08 kaib 1.7.6.1: #i68856# Added header markers and pch files
2006-09-17 00:52:51 +00:00
Kurt Zenker
a032c52337 INTEGRATION: CWS warningfixes02 (1.6.2); FILE MERGED
2006/06/30 12:32:58 sb 1.6.2.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
2006-07-19 16:19:45 +00:00
Jens-Heiner Rechtien
bbc0550588 INTEGRATION: CWS warnings01 (1.4.118); FILE MERGED
2005/11/21 13:37:35 sb 1.4.118.4: #i53898# Made code warning-free.
2005/09/22 22:03:17 sb 1.4.118.3: RESYNC: (1.4-1.5); FILE MERGED
2005/09/05 10:06:49 sb 1.4.118.2: #i53898# Made code warning-free.
2005/08/29 14:09:42 sb 1.4.118.1: #i53898# Made code warning-free.
2006-06-19 13:26:48 +00:00
Rüdiger Timm
dff8f20a4b INTEGRATION: CWS ooo19126 (1.4.120); FILE MERGED
2005/09/05 14:08:30 rt 1.4.120.1: #i54170# Change license header: remove SISSL
2005-09-09 04:14:42 +00:00
Jörg Budischewski
f0079260c4 #104452# added optimistic link lookup, which results in better performance, when the underlying registry does not use links 2002-10-23 14:27:51 +00:00
Juergen Schmidt
45401bca08 #89618# change text encoding 2001-07-23 14:43:28 +00:00
Juergen Schmidt
252d1ecb4d remove warnings 2001-01-10 09:15:54 +00:00
Jens-Heiner Rechtien
9399c662f3 initial import 2000-09-18 14:18:43 +00:00