Stephan Bergmann
b997705c07
loplugin:cstylecast: deal with remaining pointer casts
...
Change-Id: I2828f5fe78efffaa5dee19a3d56592d12878d956
2015-06-08 16:22:58 +02:00
Noel Grandin
d5129a9dd6
new clang plugin: loopvartoosmall
...
Idea from bubli - look for loops where the index variable is of such
size that it cannot cover the range revealed by examining the length
part of the condition.
So far, I have only run the plugin up till the VCL module.
Also the plugin deliberately excludes anything more complicated than a
straightforward incrementing for loop.
Change-Id: Ifced18b01c03ea537c64168465ce0b8287a42015
2015-05-28 12:49:54 +02:00
Michael Stahl
cbaca2c1ce
remove unused #include awt/InvalidateStyle.hpp
...
Change-Id: I7ea52365157fc642401db64c3b4a40d4643d16ae
2015-05-05 15:51:09 +02:00
Michael Meeks
5d5f447e73
UnoControls, toolkit, uuoi, xmlsecurity: convert new to ::Create.
...
Change-Id: I7b8c7ece656589c50fb066e9fa1565fd59f930da
2015-04-16 22:21:04 +01:00
Stephan Bergmann
d246f47422
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: I61a85caf1587291eaa6b999050a52c92d9e416e3
2015-04-01 08:35:13 +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
Caolán McNamara
556373c41f
V668 no sense in testing the result of new against null
...
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11 09:58:36 +00:00
Julien Nabet
5f6fcb4e7c
Typos
...
Change-Id: Ibc378fa5f515de61bb768b4ef082638b40c94e00
2015-03-08 16:45:30 +01:00
Noel Grandin
ba233e87ef
remove unnecessary parenthesis in return statements
...
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-23 09:26:58 +02:00
Andrea Gelmini
81cb993127
Fix of a few typos
...
Change-Id: Ib2a311f0341d165a8f9d3f7a11ec36378fd69519
Reviewed-on: https://gerrit.libreoffice.org/14373
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2015-02-09 16:20:09 +00:00
Stephan Bergmann
1990c75175
Daft += "\0" triggers assert
...
...try
GetProcessServiceManager().createInstance("stardiv.UnoControls.ProgressMonitor").addText("foo", "bar", false)
in Basic...
Change-Id: I30318c3e8e671a97b6a3fe2dd9ec03add21794ab
2014-12-16 13:31:48 +01:00
Stephan Bergmann
8502d64878
Daft "\0" triggers assert in OUString literal ctor
...
...try
GetProcessServiceManager().createInstance("stardiv.UnoControls.StatusIndicator")
in Basic...
Change-Id: Iafc22188feb8a1d3f1b19ac4f6e209be62a44d17
2014-12-16 13:23:19 +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
0371a63365
remove unnecessary 'using namespace rtl' declarations
...
It turns out that almost none of them were necessary.
Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83
Reviewed-on: https://gerrit.libreoffice.org/12133
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-29 11:28:54 +00:00
Stephan Bergmann
15652daf08
UnoControls: sal_False/True -> false/true
...
Change-Id: If30d43a2693c6df2d483ec135efa54ccb643fdb0
2014-09-15 17:23:23 +02:00
Takeshi Abe
9bac4d413e
typo: more then -> more than
...
Change-Id: I2e477d66f25bde7256938ccb1f95ab26add24922
2014-08-01 23:40:12 +09:00
Noel Grandin
3e82897353
improve the inlinesimplememberfunctions clang plugin
...
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Stephan Bergmann
dc0b96639f
-Werror,-Wtautological-undefined-compare
...
Change-Id: If546680f4c16ccd733188a65d82129ec2358017b
2014-06-10 10:53:46 +02:00
Julien Nabet
ac76cc7e60
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
...
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
Jan Holesovsky
e6ac6cbccf
automaticly -> automatically.
...
Change-Id: Iae55083160eee86ac8301f272634dd3ae65fd847
2014-04-27 01:28:55 +02:00
Tor Lillqvist
fdecbd4a41
Kill superfluous spacing before semicolons
...
Change-Id: I2c5c2c2e8c57796d147141748fb57a4c5645a96a
2014-04-06 20:00:28 +03:00
Tor Lillqvist
5814e76432
Kill superfluous vertical whitespace
...
Change-Id: Ieb7956acdc24d6b18939e916e33eb12dc268e778
2014-04-06 20:00:27 +03: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
b06820d74c
Remove visual noise from UnoControls
...
Change-Id: I0ffbc08cf769e39e8c3b7519e8d2e13ccbe6e3d8
Reviewed-on: https://gerrit.libreoffice.org/8331
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-26 06:02:19 -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
8bcb8b187e
UnoControls: sal_Bool -> bool
...
Change-Id: Ic548cf07fe115c101771999a0dc8d370e57cd3ab
2014-02-18 08:18:29 +01:00
Alexandre Vicenzi
064c628842
fdo#63154 Remove unused solar.h ref in vcl, basctl, desktop..
...
Change-Id: Ic0187495d8f7f64ddf9d3c202ec41201c9ac3a8c
Reviewed-on: https://gerrit.libreoffice.org/8001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com >
2014-02-12 07:23:09 +00:00
Stephan Bergmann
d706527fd8
bool improvements
...
Change-Id: I24fae431d9e2b99cd6ac937956bb401ecfebc943
2014-01-21 18:24:04 +01:00
Stephan Bergmann
2dde51e172
Remove odd service names (that duplicate type names)
...
Looks like no code instantiated these via those odd service names (except for
ProgressMonitor/StatusIndicator instantiating ProgressBar via odd
"com.sun.star.awt.XProgressBar" service name until that got cleaned up in the
previous commit).
Also looks like no code instantiates them via their implementation names either
(in which case ProgressBar/ProgressMonitor/StatusIndicator would be dead code),
but maybe there is code that dynamically constructs those implemenation names
and calls creeateInstance on them? So best leave the implementations in for
now...
Change-Id: I20b92345e343b1f776387f63d9b02a5b0a47fe21
2013-12-19 18:00:36 +01:00
Stephan Bergmann
f8db395a8a
Clean up UnoControls/source/controls/ further
...
...and create ProgressBar directly in ProgressMonitor/StatusIndicator, instead
of going via service manager.
Change-Id: I798e0c415c113cfc65d70ed17cb16aafded41a6d
2013-12-19 18:00:35 +01:00
Stephan Bergmann
8233226fe4
No need for implbase1.hxx to include XComponentContext.hpp
...
...which it did unlike all the other implbaseN.hxx. Required lots of downstream clean-up,
of course.
Change-Id: Ib720e7a0a43410dcd7e6338b84a3973dfbb20866
2013-12-17 17:32:58 +01:00
Noel Grandin
96bd18f692
fdo#67213 - crash on opening AutoText dialog (Ctrl+F3
...
Revert "fdo#46808, Convert frame::FrameControl service to new style"
This reverts commit 32eaa77db3
.
Conflicts:
UnoControls/source/controls/framecontrol.cxx
UnoControls/source/inc/framecontrol.hxx
.. because I can't work out how it causes fdo#67213 - I suspect my
changes might be interacting with UNO aggregation, which
is always tricky.
Change-Id: Icd14f9a7df98585393c5527a3817e05c26246de9
2013-07-24 14:44:57 +02:00
Noel Grandin
a25778abd8
fix warning
...
"-Werror=unused-macros" was firing on non-debug builds, fix by inlining
the relevant warning message macro.
Change-Id: If2fba2410bf985ec51faaa94c61b2e224fc65328
2013-07-18 13:08:53 +02:00
Noel Grandin
32eaa77db3
fdo#46808, Convert frame::FrameControl service to new style
...
Change-Id: I38fc91e70d99472a4336250acd5c7dc3457b21ab
2013-07-18 10:36:42 +02:00
Noel Grandin
95c0d568fd
use uno::Reference#clear() method...
...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
Marcos Paulo de Souza
0f200cc30e
fdo#63154: Change Min/Max/Abs for std::min/max/abs
...
Now all these usages were removed from LO.
Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6
Reviewed-on: https://gerrit.libreoffice.org/3326
Reviewed-by: David Tardon <dtardon@redhat.com >
Tested-by: David Tardon <dtardon@redhat.com >
2013-04-20 11:09:54 +00:00
Noel Grandin
b248624126
fdo#46808, Convert frame::Frame to new style
...
Change-Id: I74427d1e0059808f04960c648b93245b06c20f7f
2013-04-08 13:53:04 +02:00
Thomas Arnhold
f5ca04caca
Related to fdo#60724: correct spelling
...
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml
Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
Noel Grandin
33a0f8ce65
fdo#46808, Adapt awt::Toolkit UNO service to new style
...
Create a merged XToolkit2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.
Also mark sub-interfaces as non-optional.
Change-Id: I278d0288e92be277033013302267cf93f7d70480
2012-10-24 16:49:49 +02:00
Stephan Bergmann
03a9f139bd
ComponentContext::getUnoContext -> getComponentContext simplification
...
...and some further clean-up.
Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-19 13:16:38 +02:00
Julien Nabet
f5beefb2ea
Fix some "Variables reassigned a value before the old one has been used"
...
Change-Id: I38d62d2c095b87f08d37acfc26df07a4920be4d2
2012-09-15 10:29:37 +02:00
Thomas Arnhold
2beba8f93e
reduce ascii noise and useless comments
...
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08 13:53:54 +02:00
Thomas Arnhold
49ad17e2b1
remove include comments and boxes
...
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Michael Meeks
ec54c0c45f
re-base on ALv2 code.
2012-07-03 13:10:11 +01:00
Michael Meeks
bdc909b07d
re-base on ALv2 code.
2012-06-19 18:00:37 +01:00
Noel Grandin
0fcd1a73f0
fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
...
Update code to use factory method URLTransformer::create
Change-Id: I3fd2e838497bcfd8fc949615c0e7d60a6ea47118
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >, added some tweaks.
2012-06-06 10:53:34 +02:00
Takeshi Abe
f7ebee38a3
removed dead code
...
Change-Id: I02e535f0a0e55446e5a29297c2d05b1503805e71
2012-06-06 00:59:23 +09:00
Norbert Thiebaud
a0a6250605
targeted string re-work
...
Change-Id: I5098274cfcc1a6ae18cfc3e8a0315fce63f05adc
2012-06-02 12:58:05 -05:00
Norbert Thiebaud
601500f8a8
targeted string re-work
...
Change-Id: I6ce76c22118586b213161a0e307a53b22b318004
2012-05-29 19:30:23 -05: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