Commit Graph

48 Commits

Author SHA1 Message Date
Noel Grandin
1a18cafecb loplugin:staticmethods
Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
2015-04-02 09:38:29 +02:00
Caolán McNamara
ca8787a981 boost::unordered_map->std::unordered_map
Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
2015-01-04 12:51:09 +00:00
Stephan Bergmann
bc909149fd stoc: Use appropriate OUString functions on string constants
Change-Id: If8c20c8a0958016c14007406244fc8ab9a742933
2014-12-16 17:30:34 +01:00
Noel Grandin
a8d5b0c815 stoc: remove SAL_THROW macro
Change-Id: I7443c855a7145837621887030b0d3d01cca2a5ac
2014-06-05 08:17:51 +02:00
Noel Grandin
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
Thomas Arnhold
e856f23232 stoc: make use of css alias
Change-Id: I1dd85a7b1236cfebd5e653fe6d329968e556364b
2014-05-22 12:50:47 +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
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
35e44118b8 Remove visual noise from stoc
Change-Id: I19edfb2796298c4870124d0d1e9488974a010bb8
Reviewed-on: https://gerrit.libreoffice.org/8316
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 07:47:23 -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
Jan Holesovsky
c2c530da69 Introduce static inline cppu::acquire(), and make use of that.
This is much better approach compared to the callback function, as it allows
passing arguments to the c++ constructor directly, while still allowing some
additional initialization after having acquired the instance.

Change-Id: I5a0f981915dd58f1522ee6054e53a3550b29d624
2014-01-22 15:09:28 +01:00
Jan Holesovsky
f278397787 Change _get_implementation()'s not to do initialization directly.
Many of the initalizations (in eg. framework) have to be done on an
acquire()'d object, so instead of doing the initialization directly, return
the initialization member function back to the createInstance() /
createInstanceWithContext() / ... and perform the initialization there.

As a sideeffect, I belive the calling initialize() from servicemanager is not
that much a hack any more - whoever converts the implementation to be
constructor-base has the choice to provide the callback, or still initialize
through XInitialization, where the callback is preferred by servicemanager
when it exists.

Change-Id: I8a87b75c54c1441ca0f184967d31ff4902fc4081
2014-01-21 21:25:22 +01:00
Jan Holesovsky
306efefe22 Minimize the constructor functions to a bare minimum.
Most of the constructors are supposed to be only a call of

  new TheInstance(arguments)

or an equivalent; so let's just change the constructor caller accordingly, to
accept unacquired new instance.

If there are exceptions that need to do more heavy lifting, they do not have
to use the constructor feature, or there can be a wrapper for the real
implementation, doing the additional work in their (C++) constructor.

Change-Id: I035c378778aeda60d15af4e56ca3761c586d5ded
2014-01-20 17:37:40 +01:00
Matúš Kukan
73eca35b0a Unify ctor functions for component implementations.
There is no need to use different styles for writing the same thing.
It also makes it easier in future to use search & replace.
But of course, there are also some more complicated functions.

Change-Id: I773da20378af0e0d5a27689d3903df7063fb8ac0
2014-01-18 17:02:40 +01:00
Matúš Kukan
a700ce8e2b Unify ctor functions to have _get_implementation suffix.
Change-Id: I07fe0671d0633ef9480a4f3431df6a64c7902db8
2014-01-15 15:12:01 +01:00
Matúš Kukan
4337a0664f Use const& arguments parameter for ctor functions.
Change-Id: I19ce8bd1a23123ac9a62a7fc95cd54fea5315221
2014-01-15 08:51:27 +01:00
Stephan Bergmann
ae3a0c8da5 Add .component <implementation constructor="..." feature
...to directly call constructor functions of ComponentContext-based C++
implementations of (non-single-instance) UNO services.  The case where these
calls would need to be bridged across different environments (e.g., from gcc3
to gcc3:affine) is not yet implemented.

bootstrap.component and expwrap.component are adapted accordingly as a proof-of-
concept (which had previously been adapted to use the prefix="direct" feature,
which may become unnecessary again in the end, depending on how to handle
single-instance services/singletons).  More to follow.

Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
2013-12-19 08:48:56 +01:00
Matúš Kukan
e20f27f0a0 bootstrap component: Split into implementation functions.
Change-Id: I91cb0177edd79485eab885e995e79b1a19a769d5
2013-12-18 07:15:49 +01:00
Noel Grandin
52bbd9cc00 remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
    aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
    aStrBuf.append( "ln(x)" );
which compiles down to the same code.

Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-20 10:07:32 +02:00
Marcos Paulo de Souza
ee5661ecd3 fdo#54938: Adapt supportsService implementations..
to cppu::supportsService

Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14
Reviewed-on: https://gerrit.libreoffice.org/6370
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-22 10:28:10 +00:00
Stephan Bergmann
8ece4abb6f -Werror,-Wunused-function
Change-Id: I68d030642fc3f396f7d95602847725bb8299bebf
2013-10-02 16:49:27 +02:00
Luboš Luňák
e2e2cc6114 remove usage of RTL_CONSTASCII_USTRINGPARAM
Mechanical removal of usage together with OUString ctor, done
by compiler plugin.

Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06 16:51:45 +02:00
Stephan Bergmann
e8ff469da5 Remove any remaining remnants of unused component_canUnload feature
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-19 16:52:03 +02:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Stephan Bergmann
e1e308bc45 Remove support for UNO_AC* bootstrap variables
...they had effectively never been used.

Change-Id: I514f2b844661e144cef758eb3ce7c4607ffad635
2013-01-16 11:39:03 +01:00
Michael Meeks
3a53ddf0a2 re-base on ALv2 code. 2012-06-29 11:13:58 +01:00
Caolán McNamara
2c757293b8 reduce static_initialization_and_destruction chain
Change-Id: I0c1b2f2d908c31d1510662880c13504d81445a6a
2012-06-25 14:19:03 +01: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
Olivier Hallot
71dc235aba Fix for fdo43460 Part XXXV getLength() to isEmpty()
Part XXXV
Modules
stoc
2012-01-12 19:15:08 -02:00
Norbert Thiebaud
36f155dda1 remove include of pch header from stoc 2011-11-27 13:23:37 -06:00
Caolán McNamara
c1abc2ec9e fix up 2011-06-01 15:35:10 +01:00
Fridrich Strba
030633cd53 moving the rest of ure repository to boost unordered containers 2011-02-04 00:28:23 +01:00
Caolán McNamara
9eda1ec830 equalsAsciiL faster than equals 2011-01-16 15:41:23 +00:00
Caolán McNamara
849779db91 remove empty method 2010-11-25 12:02:13 +00:00
Caolán McNamara
9e8d4006b0 #i112929# unused s_semi 2010-11-04 13:01:39 +00: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
Caolán McNamara
68d23b4842 move some uno::Sequences to ensure a safer deterministic shutdown order 2010-10-12 13:56:53 +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
Rüdiger Timm
6be77c34b7 INTEGRATION: CWS changefileheader (1.8.12); FILE MERGED
2008/03/31 07:26:12 rt 1.8.12.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:51:07 +00:00
Jens-Heiner Rechtien
73f27a78d6 INTEGRATION: CWS sb76 (1.7.46); FILE MERGED
2007/08/31 11:01:54 sb 1.7.46.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
2007-09-27 12:01:08 +00:00
Oliver Bolte
cdfb84ffcd INTEGRATION: CWS pchfix02 (1.6.10); FILE MERGED
2006/09/01 17:41:16 kaib 1.6.10.1: #i68856# Added header markers and pch files
2006-09-16 16:36:04 +00:00
Jens-Heiner Rechtien
c58acb7ccd INTEGRATION: CWS warnings01 (1.4.34); FILE MERGED
2005/09/22 19:56:50 sb 1.4.34.2: RESYNC: (1.4-1.5); FILE MERGED
2005/09/19 15:23:59 sb 1.4.34.1: #i53898# Made code warning-free.
2006-06-19 23:05:23 +00:00
Rüdiger Timm
c7109379dc INTEGRATION: CWS ooo19126 (1.4.40); FILE MERGED
2005/09/05 17:11:11 rt 1.4.40.1: #i54170# Change license header: remove SISSL
2005-09-08 07:09:39 +00:00
Rüdiger Timm
26f32a6b6a INTEGRATION: CWS ooo20040704 (1.3.150); FILE MERGED
2004/07/02 09:59:48 cmc 1.3.150.2: #i30891# revert header and namespace change
2004/06/28 14:05:27 cmc 1.3.150.1: #i30801# allow using system stl if possible
2004-09-08 15:02:50 +00:00
Daniel Boelzle
3f39b5cb2f #88919# bootstrap recursions 2002-04-11 10:55:57 +00:00
Daniel Boelzle
38f626d165 #88919# access controller implementation and bugfixes 2002-03-04 16:43:21 +00:00
Daniel Boelzle
7f290fc522 #88919# introducing native access controller and file policy implementation 2002-01-25 08:30:07 +00:00