45 Commits
Author SHA1 Message Date
Noel Grandin 43f4c07574 loplugin:ostr in i18npool
Change-Id: I0176d93b38788e28fa42baad293597f98eaa7a21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167378
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-09 12:48:08 +02:00
Arnaud VERSINI 6182f236a2 i18npool : use OUString literal for XInterface implementation
Change-Id: I7843e1e873c9272c8ad3eb4cad0b2ea48cafeb7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165638
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
2024-04-03 12:59:48 +02:00
Noel Grandin 05ab38359a Consolidate on C++17 std::scoped_lock instead of std::lock_guard
as in commit 9376f65a26

Change-Id: I3ad9afd4d113582a214a4a4bc7eea55e38cd6ff9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119927
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-08-03 12:20:53 +02:00
Noel Grandin 4799ee69d7 osl::Mutex->std::mutex in NumberFormatCodeMapper
Change-Id: I79d95ca1e5aa29d0a416d8870430062fd2b9936a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119130
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-18 20:47:42 +02:00
Noel 8332d6d820 loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-30 12:32:14 +01:00
Arkadiy Illarionov 00e2f118d7 Simplify Sequence iterations in i18npool
Use range-based loops, STL and comphelper functions.

Change-Id: Ibbc1c14e921585819872f26e8def2a60594e6a63
Reviewed-on: https://gerrit.libreoffice.org/78754
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
2019-10-21 19:41:43 +02:00
Julien Nabet 3d24130986 Use simplified syntax for Sequence
Change-Id: I92ac60fafcc404439c101d1950ed214fce140c91
Reviewed-on: https://gerrit.libreoffice.org/77621
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-08-17 12:26:15 +02:00
Julien Nabet 973424ab31 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in i18npool

Change-Id: I99563b620056e7cd665a2b3330d15c73d0144c7e
Reviewed-on: https://gerrit.libreoffice.org/77583
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-08-16 16:03:47 +02:00
Stephan Bergmann 24556a4912 Improved loplugin:stringconstant (now that GCC 7 supports it): i18npool
Change-Id: Icc5871d548fd7795936e58ff73b9d6fa7eeb6414
Reviewed-on: https://gerrit.libreoffice.org/76670
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-07-31 12:57:53 +02:00
Noel Grandin 3af500580b loplugin:salcall fix functions
since cdecl is the default calling convention on Windows for
such functions, the annotation is redundant.

Change-Id: I1a85fa27e5ac65ce0e04a19bde74c90800ffaa2d
Reviewed-on: https://gerrit.libreoffice.org/46164
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-12-11 12:13:46 +01:00
Eike Rathke 2c1ab13268 Instanciate XLocaleData5 in all internal interfaces, tdf#81671
Change-Id: I71ab5008be930efdd3ba944b020554b9d65ed729
2017-10-27 18:29:43 +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
Maarten Bosmans 450a2fd5e2 tdf#53698: Cache more than 1 item in NumberFormatCodeMapper
In zforlist.cxx the function SvNumberFormatter::GetPreviewStringGuess
switches between the system locale and en_US in order to guess the
formatting of a number.  This results in poor performance, because in
the created SvNumberFormat only the last used locale is cached.

Caching more than 1 entries improves the load time for the document
attached to tdf#53698 from 90s to 60s in case of non en_US locales.

Change-Id: Id0eb4447dea6213015e2d958d8303a1e7892487a
Reviewed-on: https://gerrit.libreoffice.org/29136
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-22 18:59:30 +00:00
Stephan Bergmann b347e5da87 loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I3f7f71f05db09219f0de3ec14bdb56bd16fb0c8d
2016-04-20 17:25:43 +02: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
Stephan Bergmann d01888302b tdf#82775: Make NumberFormatCodeMapper MT safe
Change-Id: I77f49f09ce9fe5897f78044c0522210978c904d1
2016-01-04 14:22:59 +01:00
Noel Grandin 8e234c5b7d use initialiser syntax for Sequence<OUString>
replaced using the script:

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: I23688a91562051a8eed11fc2a85599545c285c34
Reviewed-on: https://gerrit.libreoffice.org/19967
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15 10:13:08 +00:00
Noel Grandin 184637be60 com::sun::star->css in i18npool
Change-Id: I13a290cba0f38c79eb2d93148b972d3d931c3862
Reviewed-on: https://gerrit.libreoffice.org/19445
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-10-19 11:15:23 +00: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 5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Matúš Kukan b192f590e6 i18npool: Ctor feature for another services.
Change-Id: Id2346686ac2f6c537825d70cac1a537d09e351d5
2014-01-27 08:42:53 +01:00
Marcos Paulo de Souza 6cd3118b63 fdo#54938: Convert i18npool to use cppu::supportsService
Change-Id: I9acc496cd95c8362972fa0c41d35b77fc0715aba
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-12-18 10:17:14 +01:00
Noel Grandin ef90021abe convert OUString !compareToAscii to equalsAscii
Convert code like
   if( ! aStr.compareToAscii("XXX") )
to
   if( aStr.equalsAscii("XXX") )
which is both clearer and faster.

Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11 12:58:12 +02:00
Noel Grandin dcbaf7c253 remove unused componentcontext.hxx includes
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02: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
Noel Grandin f8752a760f sal_Bool -> bool
Change-Id: Idacea435ecf403770083f5c1e75c3ad1992ec14a
2012-09-26 11:20:34 +01:00
Noel Grandin 369e3fdcda fdo#46808, Adapt i18n::LocaleData UNO service to new style
The implementation of the LocaleData implements the optional XLocaleData4,
so rather than creating a new interface for the new-style service, we simply
make the service implement XLocaleData4, which in turn implements
XLocaleData3, XLocaleData2, XLocaleData.

Change-Id: I3e9a48b031be6b2aa5e04b376b3940b942add85a
2012-09-17 14:28:21 +02:00
Michael Meeks 2c47c9989e re-base on ALv2 code. Includes:
cws mba34issues01: #i117709#: make sure that parent of error message box is visible
    Patch contributed by Mathias Bauer
    http://svn.apache.org/viewvc?view=revision&revision=1172346
    i#119036 - improve user experience of certification dialog - only shown once
    Patch contributed by Oliver-Rainer Wittmann
    http://svn.apache.org/viewvc?view=revision&revision=1299727
2012-07-13 21:38:47 +01:00
Norbert Thiebaud 1488171272 targeted string re-work
Change-Id: I1efff8e09079267f4129c474872d3fc49adeb831
2012-05-30 16:41:40 -05:00
Szabolcs Dezsi 8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
Norbert Thiebaud 2d16b82e09 remove include of pch header from i18npool 2011-11-27 13:12:24 -06:00
Matúš Kukan 2674376ddf convert i18npool to gbuild 2011-08-17 17:34:23 +02:00
Gert Faller d2cac56c66 RTL_CONSTASCII_USTRINGPARAM in libs-gui 03 2010-11-22 17:20:34 +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 7839399a22 INTEGRATION: CWS changefileheader (1.6.138); FILE MERGED
2008/03/31 16:01:28 rt 1.6.138.1: #i87441# Change license header to LPGL v3.
2008-04-10 08:07:28 +00:00
Rüdiger Timm 6f14dd2186 INTEGRATION: CWS changefileheader (1.4.92); FILE MERGED
2008/03/31 16:01:28 rt 1.4.92.1: #i87441# Change license header to LPGL v3.
2008-04-10 08:07:12 +00:00
Vladimir Glazounov 9bf10a5bb4 INTEGRATION: CWS ause074 (1.3.128); FILE MERGED
2007/01/30 12:05:08 hjs 1.3.128.1: #i73801# remove remaining usages of sv[pre].mk
2007-02-06 13:06:03 +00:00
Oliver Bolte 060089a157 INTEGRATION: CWS pchfix02 (1.5.16); FILE MERGED
2006/09/01 17:30:47 kaib 1.5.16.1: #i68856# Added header markers and pch files
2006-09-17 08:22:42 +00:00
Jens-Heiner Rechtien 303466ac9f INTEGRATION: CWS warnings01 (1.4.14); FILE MERGED
2005/11/10 10:15:03 pl 1.4.14.1: #i53898# removed warnings
2006-06-20 03:47:57 +00:00
Rüdiger Timm d9c3ea5190 INTEGRATION: CWS ooo19126 (1.3.258); FILE MERGED
2005/09/05 17:47:49 rt 1.3.258.1: #i54170# Change license header: remove SISSL
2005-09-07 16:21:47 +00:00
Rüdiger Timm d08796aed0 INTEGRATION: CWS ooo19126 (1.2.258); FILE MERGED
2005/09/05 17:47:49 rt 1.2.258.1: #i54170# Change license header: remove SISSL
2005-09-07 16:21:30 +00:00
Eike Rathke 47c516360d #84725# add XServiceInfo implementation 2001-11-12 15:38:38 +00:00
Bustamam Harun 82f205c880 Add License 2001-09-16 14:23:00 +00:00
Bustamam Harun 1395c46dcc Add localedata, registerservices, numberformatcode, defaultnumberingprovider 2001-08-30 22:33:17 +00:00