Commit Graph

38 Commits

Author SHA1 Message Date
Jochen Nitschke
a3bedb7ae8 use local statics for getUnoTunnelImplementationId
replace uses of double checked locking pattern and
rtl::Static

Change-Id: I479d9d94f652b4fb4c67388405823a5f4e2b6ed4
Reviewed-on: https://gerrit.libreoffice.org/38690
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-13 09:13:37 +02:00
Jochen Nitschke
959496794c cleanup osl/diagnose.h includes
with command
> git grep -l osl/diagnose.h *.cxx |
  xargs grep -L -w 'OSL_\w*' |
  xargs sed -i '/#include *\(<\|\"\)osl\/diagnose.h\(>\|\"\).*/d'

headers need more work

Change-Id: I906519ebbd47a04703b4fa5943b2f7abea7a97ab
Reviewed-on: https://gerrit.libreoffice.org/37350
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-05-09 15:41:46 +02:00
Stephan Bergmann
e57ca02849 Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.

Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly).  The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually).  There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).

Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code.  Missing @throws
documentation has not been applied in such manual clean-up.

Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-26 12:54:43 +00:00
Xisco Fauli
2d2971090b tdf#89329: use unique_ptr for pImpl in accimplaccess
Change-Id: Ib10088b5669695dd5e288fe043ad72056a34b1e4
Reviewed-on: https://gerrit.libreoffice.org/25745
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 06:49:46 +00:00
Jochen Nitschke
150ac9cf05 clean-up: unused using declarations and includes
Searched source for using declarations.
Checked if those symbols reappear in the source file,
even in comments or dead code but not in #include statements.
If they don't reappear, remove the declaration.
Remove includes whose symbol got removed.

Change-Id: Ibb77163f63c1120070e9518e3dc0a78c6c59fab0
Reviewed-on: https://gerrit.libreoffice.org/24148
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-18 07:25:24 +00:00
Noel Grandin
216ffb038f loplugin:passstuffbyref in comphelper
Change-Id: I502a0ec6627f37e17c4a9adebda58299167a8126
2016-04-13 13:27:51 +02:00
Jochen Nitschke
f7a75a66fa cleanup: remove unused Reference.h(xx) includes
and unused using-declarations from Reference.h

Change-Id: I297a7ae6044fa329d245ecf08fd5c4cb930f5b19
Reviewed-on: https://gerrit.libreoffice.org/23735
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-02 19:01:24 +00:00
Chris Sherlock
a238b1f8d3 Remove excess newlines
A ridiculously fast way of doing this is:

for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
  --exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
    perl -0777 -i -pe 's/^
{3,}/

/gm' $i
done

Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09 08:18:05 +00:00
Noel Grandin
e18b08363a loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
2015-12-21 10:20:31 +02:00
Stephan Bergmann
fb4ce444c2 loplugin:nullptr (automatic rewrite)
Change-Id: Ibd0e6ae5e3243464b2484a009f2b4781bdaac471
2015-11-10 10:31:19 +01:00
Caolán McNamara
bfd33a826c callcatcher: update unused code
Change-Id: I735264eb32ebdd165d23a4717f0329f666b8b140
2015-05-25 12:32:53 +01:00
Andrea Gelmini
5b1337f7b2 tdf#62475: partial handmade fixes
Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4
Reviewed-on: https://gerrit.libreoffice.org/15712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-05-15 17:55:15 +00: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
Stephan Bergmann
2134c9653e comphelper: sal_Bool -> bool
Change-Id: I7d7ae1f5ddff0cf7d11a407b190256f37a71d48a
2014-07-03 11:51:01 +02:00
Stephan Bergmann
37b1835972 Revert "comphelper: sal_Bool -> bool"
Oops, this reverts commit c95ff75df2.
2014-07-02 18:54:32 +02:00
Stephan Bergmann
c95ff75df2 comphelper: sal_Bool -> bool
Change-Id: Icde90101b6adfa766c8abbeb55c518725e6596e1
2014-07-02 18:49:31 +02:00
Alexander Wilms
a67c2a12bc Remove visual noise from comphelper
Change-Id: I7e5512b43240beee05404cff9d49a87d0217ea89
Reviewed-on: https://gerrit.libreoffice.org/8242
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 06:42:45 -06:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
Stephan Bergmann
05f742d28b comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17 17:55:19 +01:00
Stephan Bergmann
787bdc61dd -Werror=unused-macros
Change-Id: I8548078dd6b9fc3555bfb5e23a683879ee3de3fa
2013-03-27 12:55:05 +01:00
Arnaud Versini
1cd0f1bdb5 Replace usage of rtl/memory.h in comphelper with equivalent from string.h
Change-Id: I41d452aa4892606d127e9565cf83c21f78a67392
2012-08-25 12:41:28 +02:00
Michael Meeks
2005a34318 re-base on ALv2 code. 2012-06-29 15:51:49 +01:00
Elton Chung
0333d2101a Remove unused code in basegfx, comphelper 2012-02-25 20:33:57 +00:00
Norbert Thiebaud
b8ee1f9b5f remove include of pch header in comphelper 2011-11-27 13:00:14 -06:00
Caolán McNamara
723e74b5dc use rtl::Static where double-locked pattern used 2011-04-03 21:43:00 +01:00
Thomas Arnhold
3d874bdf40 Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...) 2011-03-19 14:11:09 +01:00
Sebastian Spaeth
4905a19032 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:02:15 +02:00
Jens-Heiner Rechtien
8764506704 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
Rüdiger Timm
7298b2e11b INTEGRATION: CWS changefileheader (1.8.160); FILE MERGED
2008/04/01 15:05:27 thb 1.8.160.3: #i85898# Stripping all external header guards
2008/04/01 12:26:29 thb 1.8.160.2: #i85898# Stripping all external header guards
2008/03/31 12:19:32 rt 1.8.160.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:06:28 +00:00
Oliver Bolte
17fb682c11 INTEGRATION: CWS pchfix02 (1.7.36); FILE MERGED
2006/09/01 17:19:40 kaib 1.7.36.1: #i68856# Added header markers and pch files
2006-09-17 16:09:30 +00:00
Jens-Heiner Rechtien
0414636d0b INTEGRATION: CWS warnings01 (1.5.260); FILE MERGED
2005/09/23 03:16:10 sb 1.5.260.2: RESYNC: (1.5-1.6); FILE MERGED
2005/09/01 13:59:59 sb 1.5.260.1: #i53898# Made code warning-free.
2006-06-19 21:47:22 +00:00
Rüdiger Timm
a22d7bdcf2 INTEGRATION: CWS ooo19126 (1.5.264); FILE MERGED
2005/09/05 15:23:59 rt 1.5.264.1: #i54170# Change license header: remove SISSL
2005-09-08 01:48:19 +00:00
Vladimir Glazounov
f865d3bf6d INTEGRATION: CWS uaa02 (1.4.8); FILE MERGED
2003/04/10 11:59:43 mt 1.4.8.1: #108656# Moved Accessibility module from drafts to final
2003-04-24 16:28:13 +00:00
Jens-Heiner Rechtien
8ed9759cd9 MWS_SRX644: migrate branch mws_srx644 -> HEAD 2003-03-19 15:03:25 +00:00
Frank Schönheit
acfdf4c4b7 #98750# renamed implGetAccessibleParent 2002-04-26 04:54:25 +00:00
Frank Schönheit
bd77e681a4 #98750# implemented getForeignControlledState 2002-04-23 10:03:40 +00:00
Frank Schönheit
f88abf316a initial checkin - helper class for tunneling an XAccessibleContext implementation 2002-04-17 07:39:28 +00:00