Commit Graph

37 Commits

Author SHA1 Message Date
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
71b809959b remove unnecessary use of void in function declarations
ie.
    void f(void);
becomes
    void f();

I used the following command to make the changes:

  git grep -lP '\(\s*void\s*\)' -- *.cxx \
    | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'

and ran it for both .cxx and .hxx files.

Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Stephan Bergmann
ead3062336 Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I620bf5d46c19f0182e822265eadf8eb11001855e
2015-04-01 08:38:16 +02:00
Stephan Bergmann
e97b327266 Clean up C-style casts from pointers to void
Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
2015-03-28 19:09:19 +01:00
Stephan Bergmann
dbdb819501 Some more loplugin:cstylecast: cppuhelper
Change-Id: Ifc11a0ea20a4eec40544cd931d0f94e0db3e3288
2015-01-20 09:06:46 +01:00
Noel Grandin
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
Noel Grandin
da906ab937 cppuhelper: remove SAL_THROW macro
Change-Id: I54141071396d04e7bead56da14a665b8556ba6d2
2014-06-05 08:17:46 +02:00
Thomas Arnhold
530899ba18 cppuhelper: fix includes
Change-Id: I0e6bc822d19cf266dea716fe92f2ccd08d87c51f
2014-06-04 21:18:39 +02:00
Noel Grandin
c5d47c327a add default value for Context param in uno::Exception constructors
and all it's subtypes, which is almost never used, so this allows us to
simplify lots of call sites.

Change-Id: I0b05793ea2bdd1027679f63252d42ce4af89433b
2014-05-23 15:05:59 +02:00
Stephan Bergmann
023c00b7c4 cppuhelper: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I1e355c0ef9548d505de996304837d3d0910bd9b8
2014-03-10 17:39:53 +01:00
Alexander Wilms
518b75326a Remove visual noise from cppuhelper
Change-Id: If23a1aa19949f91f900d55ff9e1d5039378d7277
Reviewed-on: https://gerrit.libreoffice.org/8248
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 06:43:02 -06: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
e3133ae237 Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Missing overloads of insert() for bool have been added to OStringBuffer and
OUStringBuffer (which required dropping one !VALID_CONVERSION check that would
now pick that overload, but would be flagged by
compilerplugins/clang/pointertobool.cxx).

Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
2014-01-23 18:43:53 +01:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
Chr. Rossmanith
1ed2c24a6e remove RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I0bce921bfc7102b9a33b1c87eee3ddec0ebaed7b
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with one little typo fix
2013-10-23 10:44:09 +02:00
Stephan Bergmann
e89e7cded7 Prefer using declarations over using directives
Change-Id: I1316fc4ae1d4dab91684bdc059f5c69c5e0c401a
2013-08-19 12:52:36 +02:00
Michael Meeks
9d7c1dcbbb re-base on ALv2 code. Includes:
Patches contributed by Ocke Janssen
   converted reportdesign.
   http://svn.apache.org/viewvc?view=revision&revision=1396797
   http://svn.apache.org/viewvc?view=revision&revision=1394326

   Patch 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
2012-12-06 09:12:57 +00:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Norbert Thiebaud
c10fb61c1a remove include of pch header in cppuhelper 2011-11-27 13:03:19 -06:00
Thomas Arnhold
adc6fe00e3 Move OSL_ENSURE(0,...) to OSL_FAIL(...) 2011-03-12 14:19:48 +01: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
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
Rüdiger Timm
10292b1670 INTEGRATION: CWS changefileheader (1.13.88); FILE MERGED
2008/04/01 15:10:54 thb 1.13.88.3: #i85898# Stripping all external header guards
2008/04/01 10:54:26 thb 1.13.88.2: #i85898# Stripping all external header guards
2008/03/28 15:25:25 rt 1.13.88.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:34:10 +00:00
Oliver Bolte
b870d65ae2 INTEGRATION: CWS pchfix02 (1.12.54); FILE MERGED
2006/09/01 17:23:17 kaib 1.12.54.1: #i68856# Added header markers and pch files
2006-09-16 11:40:52 +00:00
Kurt Zenker
e32a51e2f9 INTEGRATION: CWS intptr (1.10.26); FILE MERGED
2005/09/13 14:50:07 kendy 1.10.26.1: #i54498#
Introduce and use sal_IntPtr/sal_uIntPtr for ints where we have to store a pointer
2005-10-05 13:28:31 +00:00
Rüdiger Timm
0e4b8b6458 INTEGRATION: CWS ooo19126 (1.10.20); FILE MERGED
2005/09/05 12:07:38 rt 1.10.20.1: #i54170# Change license header: remove SISSL
2005-09-08 08:26:49 +00:00
Rüdiger Timm
127f46a2fd INTEGRATION: CWS xmlperf01 (1.9.32); FILE MERGED
2005/01/14 11:28:53 sb 1.9.32.1: #i40644# Improve performance.
2005-01-27 11:35:47 +00:00
Oliver Bolte
ca36dbb430 INTEGRATION: CWS sb18 (1.8.24); FILE MERGED
2004/05/14 12:54:27 sb 1.8.24.1: #i21150# Missing includes.
2004-06-04 02:21:16 +00:00
Jens-Heiner Rechtien
6968c458b6 INTEGRATION: CWS sb10 (1.7.38); FILE MERGED
2004/01/13 13:47:54 sb 1.7.38.1: #114000# Adapted __queryDeepNoXInterface to multiple-inheritance interface types.
2004-02-03 12:27:55 +00:00
Jens-Heiner Rechtien
8694ce8ec2 INTEGRATION: CWS ooo20030412 (1.5.30); FILE MERGED
2003/04/09 12:35:30 mh 1.5.30.1: chg: use sal alloca, #i6842#
2003-04-28 15:31:42 +00:00
Vladimir Glazounov
6adc9ee7f1 INTEGRATION: CWS dbgmacros1 (1.5.40); FILE MERGED
2003/04/09 10:40:11 kso 1.5.40.1: #108413# - debug macro unification.
2003-04-15 15:34:54 +00:00
Jens-Heiner Rechtien
22f1ec8c53 #101685#,#i6886# merge OOO_STABLE_1_PORTS (1.4-1.4.12.1) -> HEAD 2002-08-15 11:36:30 +00:00
Daniel Boelzle
4933020d87 #90698# throw RuntimeException when querying for no interface type 2001-10-18 10:44:03 +00:00
Vladimir Glazounov
c1dd9f1070 #65293# changed include 2001-09-17 11:43:20 +00:00
Daniel Boelzle
f97d7fc4e5 #90698# add performance opt 2001-09-05 07:46:40 +00:00
Daniel Boelzle
fe388f652d #90698# new major implementation helper revision 2001-09-04 08:03:09 +00:00