5513 Commits

Author SHA1 Message Date
Stephan Bergmann
a6611be6bc Clean up function declarations and some unused functions
Change-Id: Ie81d270267b6c3c3620ade62eb393b28d995a654
2014-04-13 23:44:29 +02:00
Michael Stahl
e98e738a82 replace some SvStream seeking with calls to remainingSize()
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11 23:08:11 +02:00
Tor Lillqvist
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
Stephan Bergmann
01f529b546 Whatever those odd dummy function definitions were supposed to be good for
...introduced in d2237276cb3e32493ff8f9f71e06301937434622 "INTEGRATION: CWS
vcl09 (1.6.10): #109426# make rpnp.so work on Linux" without any explanation,
but probably a misguided attempt at getting things working in the face of a
missing libgcc_s.so or libstdc++.so (though the names used here do not match any
there), and seemingly not necessary.

Change-Id: Ib092d426f4acfd3ece30adb754c1bb76d4eca381
2014-04-09 08:54:21 +02:00
Caolán McNamara
de31f85d6c coverity#706530 Uncaught exception
Change-Id: Ic975df93535b47dfcf39b9e58e7e9728adce082b
2014-04-05 20:34:35 +01:00
Caolán McNamara
eb97362a42 coverity#706518 Uncaught exception
Change-Id: I2db2ba69d7aac319fa9b446766729813c09d344f
2014-04-05 20:34:35 +01:00
Caolán McNamara
b7dcef0b45 coverity#706520 Uncaught exception
Change-Id: I80c4a2fdff5bb487bc40a37da45a62cde3eaa9da
2014-04-05 20:34:34 +01:00
Caolán McNamara
73514d205b coverity#706521 Uncaught exception
Change-Id: Ibb5623097f910d011c388c9c8d429871b62bf613
2014-04-05 20:34:34 +01:00
Caolán McNamara
f2810ae4a7 coverity#706523 Uncaught exception
Change-Id: I20515693bed76163433421f7fd05b319ed472a54
2014-04-05 20:34:33 +01:00
Michaël Lefèvre
453ee351f3 fdo#43157 : clean up more OSL_POSTCOND
Change-Id: Iaca31b4e12c258b762b3d88fbad0fb08b4f1fc16
Reviewed-on: https://gerrit.libreoffice.org/8832
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-04 07:23:43 -05:00
Takeshi Abe
4da62012fe Fix a memory leak by freeing last pBytes
Change-Id: I7d170d704fa8950057698856d12df63992e38381
Reviewed-on: https://gerrit.libreoffice.org/8822
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-04 07:20:50 -05:00
Noel Grandin
7938279a0d /include/connectivity/dbtools.hxx: sal_Bool->bool
Change-Id: Ie1e1952e3d39d53756583482826dfc3b65b5f9e0
2014-04-04 13:44:18 +02:00
Stephan Bergmann
c5a518936d Clean up unreferenced functions
Change-Id: Ie6560c806369a2d1698b4df43710f3aebb10ed6a
2014-04-04 10:05:58 +02:00
Stephan Bergmann
c5db1e1519 Remove unnecessary factory function prototype
Change-Id: I5fd41bca54c7b716003eea92e90ddfd08ebfa95a
2014-04-04 10:05:56 +02:00
Noel Grandin
5babf1b903 remove unnecessary scope qualifier from sal_Bool uses
i.e. convert "::sal_Bool" to "sal_Bool"

Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
Takeshi Abe
8f7c677dbb Avoid possible resource leaks by boost::scoped_array
Change-Id: Ibf92b3098c50388d8b6d27f4476e613a1f8918b5
2014-04-02 16:09:11 +09:00
Stephan Bergmann
362d4f0cd4 Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."

Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
Thomas Arnhold
6f892ed9fc typo: overrride -> override
All detected by SpellCode

https://code.google.com/p/spellcode/
2014-03-29 19:16:33 +01:00
Stephan Bergmann
efe704cc59 Dead code
Change-Id: I05ecb627119eb545d1781fa42613e940fc22aac1
2014-03-28 15:27:38 +01:00
Stephan Bergmann
f7c8d7655f Work around MSC "'override' cannot be used with 'inline'" bug
Change-Id: I6eeb47699193ee024e975915011b1c3c5483bf9e
2014-03-27 19:59:49 +01:00
Stephan Bergmann
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01: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
Noel Grandin
80ef0dfedc svtools: sal_Bool->bool
Change-Id: I42a341b5805e0b2a7d619ba552700db35815afd5
2014-03-25 14:32:57 +02:00
Noel Grandin
436cd90095 svtools: sal_Bool->bool
Change-Id: Ifd3e643dbc6755839ad4af73ae141fd115ddb4f4
2014-03-25 14:32:56 +02:00
Noel Grandin
9604eb8758 svtools: sal_Bool->bool
Change-Id: I8f171f7f61ea06a79183e9bf9b15b8c35c98cc9b
2014-03-24 08:12:09 +02:00
Caolán McNamara
51bef3b727 coverity#738626 Uninitialized pointer field
Change-Id: I8468009fafff845c249bddb88417a5ceeb556fb0
2014-03-22 20:36:28 +00:00
Caolán McNamara
82e8011208 coverity#983370 Dereference before null check
Change-Id: I524ce73811f32b7da38ef127ee4633a2c6a9f933
2014-03-22 16:57:17 +00:00
Caolán McNamara
b0ff06a5bc coverity#984088 Uninitialized pointer field
Change-Id: I228f7c8f99b0cc3117fbeab78efbeddd74896d54
2014-03-19 20:22:51 +00:00
Stephan Bergmann
42bfcce123 loplugin:passstringbyref
Change-Id: If08dab3956da5c0ee90d6a788f6f34a936e792d7
2014-03-19 08:40:48 +01:00
Noel Grandin
96710f8e46 convert OUString::match to OUString::endsWith
Convert code like:
    rTxt.match( "---", rTxt.getLength()-3 )
to:
   rTxt.endsWith( "---" )

Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
2014-03-19 08:55:21 +02:00
Stephan Bergmann
549c3b8119 Remove unused code
Change-Id: I1690f5b88b7bd04d336a45b1d745185285e13070
2014-03-17 12:56:42 +01:00
Stephan Bergmann
488817e3c4 No need for SAL_CALL here
Change-Id: I283c883bf49e33941de33b9e58d355f683c96ea3
2014-03-17 12:56:42 +01:00
Noel Grandin
b69dcab522 extensions: prefer passing OUString by reference
Change-Id: Ic411b2776d0c054d59bfdc847f67785c85c5cb9e
2014-03-17 13:30:53 +02:00
Tor Lillqvist
8578aabbc4 "prefix" and "postfix" are single words
Change-Id: I32824c614d070cd4649e18da4a0b91b03bccfaba
2014-03-14 07:57:18 +02:00
Caolán McNamara
534425bfcd convert new data type dialog to .ui
Change-Id: Ia354e003903c20435947e82afa293a34a367773a
2014-03-13 20:48:49 +00:00
Stephan Bergmann
c7f1ce594c extensions: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I234d36bc7ef9e8e27087067f6e43d7e522e52d4d
2014-03-10 17:39:55 +01:00
Stephan Bergmann
25cedf1dc7 Introduce com.sun.star.beans.theIntrospection singleton
...deprecating com.sun.star.beans.Introspection (single-instance) service.

Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-03-07 10:33:07 +01:00
Eike Rathke
68ec95b3f8 made ListBox handle more than 64k elements, fdo#61520 related
ListBox and related now handle up to sal_Int32 elements correctly.
sal_Int32 instead of sal_Size or size_t because of UNO and a11y API.
Also disentangled some of the mess of SvTreeList and other containers
regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures.

Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a
Reviewed-on: https://gerrit.libreoffice.org/8460
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05 07:31:19 -06:00
Marcos Paulo de Souza
4d6560f506 fdo#54938: Convert some places to use cppu::supportsService
The last cases are non obvious, so it's pratically done

Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547
Reviewed-on: https://gerrit.libreoffice.org/8445
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-03-04 07:30:02 -06:00
Stephan Bergmann
b2371492df Use cstdlib std::abs instead of stdlib.h abs
...because the latter lacks the abs(long) overload in some popular environments,
cf. <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401> "stdlib.h does not
provide abs(long) overload."

Similarly, stdlib.h lacks the abs(float), abs(double), abs(long double)
overloads compared to cmath there, whose use was apparently intended in
sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx.  Rewrote that to use
CPPUNIT_ASSERT_DOUBLES_EQUAL instead, which revealed that the comparisons need
rather large deltas of .1 resp. .2 (which the original code hid with an
implicit conversion to integral type, thus using an effective delta of 1).

Discovered with -Wabsolute-value ("absolute value function 'abs' given an
argument of type 'long' but has parameter of type 'int' which may cause
truncation of value") recently introduced on Clang trunk towards 3.5.

Change-Id: I4c41575ffdccb2944498b662bd3a53fd510cb0c0
2014-03-03 18:36:55 +01:00
Arnaud Versini
ff71f4e55c EXTENSIONS : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.

Change-Id: Ied33afa8b32149b6b7b1c0725167349e817d6c89
Reviewed-on: https://gerrit.libreoffice.org/8407
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-03 09:17:33 -06:00
Caolán McNamara
0f48aba07a coverity#704634 Dereference after null check
Change-Id: Id6e4e71a9d261734d01de72f81e2df0f7fbad475
2014-03-02 20:08:15 +00:00
Caolán McNamara
e6ba4db7f0 unnecessary check before delete
Change-Id: I62b42aa20395ff2f6b3dd2b7ab6460be2ce943b8
2014-03-02 20:08:15 +00:00
Tor Lillqvist
0e39eba09b WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'
Change-Id: I6a15e3e705015fdfa92e0606935af8b83cc9a183
2014-02-28 13:27:01 +02:00
Alexander Wilms
15246c959a Remove visual noise from extensions
Change-Id: I0397d0d0e5343b7ed192a790664b068ac6955bd3
Reviewed-on: https://gerrit.libreoffice.org/8259
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 07:34:29 -06:00
Caolán McNamara
ccf0f7ef03 coverity#704633 Dereference after null check
Change-Id: I4985249110da93ba67881dcd1c8cd1dc66ae08e2
2014-02-27 12:57:25 +00:00
Noel Grandin
c521f07208 editeng: sal_Bool->bool
Change-Id: I7da10ad3ba8017d64c723b53795348edf0e7dd6d
2014-02-27 12:30:30 +02:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Norbert Thiebaud
9aee4d1c9e harmonize Tell() Seek() type.
Change-Id: I2e472aa0279d0763762d3c660207cd74da512626
2014-02-24 23:14:45 -06:00
Stephan Bergmann
b7259532d8 Remove unnecessary bool2any
Change-Id: Ie2caee1d5a7912011d76172539c2f8f37eaee5cf
2014-02-24 08:08:00 +01:00