Commit Graph

56 Commits

Author SHA1 Message Date
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
752cd07d08 InterfaceContainer2 with vector instead of Sequence
create an InterfaceContainer2 class to replace InterfaceContainer.
It uses a std::vector instead of a Sequence for the mutable listener
list, which provides far better performance.

Switch all our internal use-sites to the new class.

Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
2016-01-25 08:52:03 +02:00
Noel Grandin
54d22957bc use initialiser for Sequence<OUString>
performed using:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi -e
  "s/Sequence<OUString> (\w+)\(1\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"

Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f
Reviewed-on: https://gerrit.libreoffice.org/19968
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15 11:31:23 +00:00
Stephan Bergmann
cb0fb3edd4 loplugin:nullptr (automatic rewrite)
Change-Id: I11a107dadd064452b983c69356e7562ed36c8bc3
2015-11-10 10:31:15 +01:00
Stephan Bergmann
b36963c0a6 Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12 17:52:29 +02:00
Tor Lillqvist
395d922f58 chmod -x
Change-Id: I4a248b59e12587c3b2ce79676fdce29a348b6751
2015-07-29 14:17:05 +03:00
Noel Grandin
40da0a9d1c com::sun::uno->css in avmedia and animations
Change-Id: Ie4365a488728c39fedacae7650b4b90260e7e44a
Reviewed-on: https://gerrit.libreoffice.org/17153
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17 10:21:15 +00:00
Takeshi Abe
15c0fba5c2 tdf#88206: replace cppu::WeakImplHelper1 with cppu::WeakImplHelper
in animations.

Change-Id: I7d776ddb81e0943bf2ea5895ea26631db76546ac
Reviewed-on: https://gerrit.libreoffice.org/16645
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-06 07:36:07 +00:00
Stephan Bergmann
1cb0b37ad0 Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements

Change-Id: I88c0c4681137022005c3a4c418e91cb17bc17148
2015-05-08 09:49:01 +02:00
Caolán McNamara
869e477484 cppcheck: noExplicitConstructor
Change-Id: Iea5bb0504518b380c3fe7c238d376dc26be8a7ef
2015-05-04 20:13:52 +01:00
Caolán McNamara
21773f6d9a cppcheck: noExplicitConstructor
Change-Id: I0b1cac50f9e158004f8c1b8294b7a1b9f21f9628
2015-05-02 16:45:18 +01: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
3099c70b11 Fix various XServiceInfo implementations
...to match what is recorded in the .component files

Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-03-17 12:25:11 +01:00
Stephan Bergmann
6d97df009d Clean up previous commit
...and fix AnimationNode::getSupportedServiceNames

Change-Id: I199bc5a58174873794f082b149352359918bfc6b
2015-03-11 18:27:36 +01:00
Chris Sherlock
063fea93d6 animations: convert animcore.component to constructor usage
Change-Id: Ia623a19457000fe717e29d6b0e73f53b978f7de8
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-11 18:27:36 +01:00
Michael Stahl
15b4ab8d19 cppuhelper: clean up public headers with include-what-you-use
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18 18:51:49 +01:00
Noel Grandin
9af0abebfd remove unnecessary use of Reference constructor in throw
Convert code like this:
  throw IOException("xx",
     Reference< XInterface >(static_cast<OWeakObject*>(this)) );
to this:
  throw IOException("xx",
     static_cast<OWeakObject*>(this) );

Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb
2014-05-27 08:20:11 +02:00
Julien Nabet
b09b5f8f7c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
2014-05-22 23:21:18 +02:00
Stephan Bergmann
c23bcc2331 Missing include
Change-Id: I2e04a61cc682fd6390571807c547a713d224d32b
2014-04-09 09:57:30 +02:00
Noel Grandin
718ec66252 animations: sal_Bool->bool
Change-Id: I77d10e56389042dd3caa8ed4816afe9f3baf5b22
2014-04-07 13:53:48 +02:00
Stephan Bergmann
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
Stephan Bergmann
557c0893f2 animations: simplify deprecated XTypeProvider.getImplementationId
Change-Id: If677c147011799872cf5da2d148aacceebf5df42
2014-03-10 17:39:52 +01: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
f72ba18320 Remove visual noise from animations
Change-Id: I45b8019bebf6530136642bf34be829d7e26e2454
Reviewed-on: https://gerrit.libreoffice.org/8228
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25 16:20:02 +00: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
Julien Nabet
a4285867cd Typo: atribute(s) -> attribute(s)
Change-Id: I5434402e372c4567b2c3f96f5c175618ba3e5cfb
2014-02-06 21:32:04 +01:00
Caolán McNamara
8bc81f6f16 Related: fdo#69645 don't know if mxParent could become invalid..
after get and before call through mpParent. Probably can't, but
I don't know for sure.

Change-Id: Ib40e0709f1966687a37cc5b84bae1d554a5b4474
2014-02-04 12:01:20 +00:00
Caolán McNamara
1563162131 Resolves: fdo#69645 Parent Node disposed and mpParent pointing to junk
mpParent points the contents of mxParent which is a WeakReference, so
we can check if the WeakReference is still valid before using mpParent

Change-Id: I40424714865e506b8cf27017539795eb834e10d2
2013-11-05 11:47:39 +00:00
Marcos Paulo de Souza
704f95e525 fdo#54938: More uses of cppu::supportsService
Change-Id: I90a7a07a43559b8d7e1d4b886b2624255200d46b
Reviewed-on: https://gerrit.libreoffice.org/6406
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-25 08:19:58 +00:00
Takeshi Abe
bddd4d4598 Mark as const
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
2013-07-22 21:03:55 +09:00
Noel Grandin
378c038918 fdo#46808 Convert animations::ParallelTimeContainer to new style
Change-Id: Iac6337828c807a132e561b5e9017a708be2e9729
2013-04-25 08:56:38 +02:00
Jian Fang Zhang
d6e752d5eb i#113608#, memory leak in animations: newly exposed crashed problem
Patch by: zhangjf
Review by: Andre Fischer

Conflicts:
	animations/source/animcore/animcore.cxx
	svx/source/svdraw/svdobj.cxx

Change-Id: I305d5d92d064265edf108a5a34c948c610b4fdc1
2013-03-14 14:35:41 +01:00
Thomas Arnhold
41e03a166e doubled using
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-03-05 12:34:33 +01:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Ricardo Montania
1bbe1743c2 OUString cleanup in animations
Change-Id: Ib858f9fa709d72539f71a6473a4ecb519d68e98e
Reviewed-on: https://gerrit.libreoffice.org/584
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2012-09-07 22:13:24 +00:00
Michael Meeks
8ed5bf0fca re-base on ALv2 code. 2012-06-27 19:13:15 +01:00
Thomas Arnhold
135c63c8f9 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-04 15:52:57 +02:00
Thomas Arnhold
22da27d9dd Improve checking for emptiness 2012-01-21 19:58:46 +01:00
Michael T. Whiteley
dcfd4beb21 childs -> children 2011-12-08 11:32:41 +02:00
Takeshi Abe
e1a1091d0a catch ignored exceptions by const reference 2011-08-24 11:30:17 +09:00
Caolán McNamara
92e8795595 use standard template for this 2011-06-03 13:43:35 +01:00
Caolán McNamara
ecbcaca7f3 valgrind: in what planet did that make sense 2011-05-20 15:22:48 +01:00
Julien Nabet
d3a0593ee1 Some cppcheck cleaning 2011-05-08 10:47:35 +02:00
Takeshi Abe
8eb4e48f90 Removed unused codes and fix some typos 2011-01-25 07:22:21 +01:00
Kayo Hamid
c919c3a73b Cleanup commented code in impress
Signed-off-by: Thorsten Behrens <tbehrens@novell.com>
2010-12-02 22:58:51 +01:00
Sebastian Spaeth
80b0861510 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-13 10:57:43 +02:00
Jens-Heiner Rechtien
9e19ff00c7 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
804cfadc05 INTEGRATION: CWS changefileheader (1.9.2); FILE MERGED
2008/04/01 14:59:08 thb 1.9.2.3: #i85898# Stripping all external header guards
2008/04/01 10:46:14 thb 1.9.2.2: #i85898# Stripping all external header guards
2008/03/28 15:58:10 rt 1.9.2.1: #i87441# Change license header to LPGL v3.
2008-04-10 17:09:57 +00:00
Rüdiger Timm
f3f360fd0e INTEGRATION: CWS impresstables2 (1.8.8); FILE MERGED
2008/03/03 15:32:42 cl 1.8.8.1: #i68103# fixed a threading problem
2008-03-12 08:12:00 +00:00
Jens-Heiner Rechtien
899609580a #i10000#: signed/unsigned comparision 2007-08-03 15:22:15 +00:00