Commit Graph

632 Commits

Author SHA1 Message Date
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
7e57b5ad17 coverity#703995 Uncheck return value
Change-Id: I84d219e65966c18092d1deef163efcf7b189af79
2014-07-04 13:31:35 +02:00
4228f08d60 use assert when followed by deref
Change-Id: I8405e4d8f9fa1de3ef6ee474321b4ac2b4ce1624
2014-07-03 12:49:38 +01:00
37e6631cc5 remove whitespace
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-25 05:41:10 +02:00
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
66e4c16f13 cppcheck: catchExceptionByValue
Change-Id: Idbb7a68a9517270325fd9ec34c14d663573318ac
2014-05-24 21:20:18 +02:00
227af32d8c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
2014-05-20 23:29:53 +02:00
2fc4f5cd75 Register OpenGL windows to ScGridWindow upon file load.
Change-Id: I6fdce232ef41079f20a983dc72da032196078858
2014-05-19 16:03:28 -04:00
dd33f91581 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part14
Change-Id: Ibccaa2138426c22cd63d273a1b6cdc927ebe80dc
2014-05-17 00:24:22 +02:00
2bac61013e fix-includes.pl: sc
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-05-11 01:55:39 +02:00
6dda3d45c9 sc: sal_Bool->bool
Change-Id: I70aad0b38979f45a313b8ac36890fb6c64d11bb0
2014-04-23 11:11:51 +02:00
97a5ba4a71 remove comments why a file gets included
also remove some commented out code

Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-21 18:08:28 +02:00
141a87dd3c Clean up function declarations and some unused functions
Change-Id: If2c233a8ced8815b065a72caff907f10ef6166ff
2014-04-14 15:41:27 +02:00
f18158d76c Use valid UNOIDL identifier for XAccessibleGetAccFlowTo.get_AccFlowTo
...which is new in LO 4.3 and still unpublished (and has a comment that the
names should be renamed anyway).

Change-Id: I738d30974446578496400a176053b8d95dc96ab9
2014-04-11 08:41:09 +02:00
c4c51709ea whitespace cleanup in sc
Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c
2014-04-06 17:19:54 +02:00
2bd665fadb callcatcher: another layer post pivottable conversion
Change-Id: I58a6a1f0cf0d67bfadddb331364551776998908a
2014-04-04 12:14:26 +01:00
d13f1ed261 callcatcher: remove old pivot table dialog
Change-Id: I9e80a0d6661c29343103a27baa752cebbc876314
2014-04-04 09:35:20 +01:00
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
b6f77d2702 Remove remaining DBG_CTOR etc. remnants from sc
Change-Id: Ica865166d6f187bbe610ed537208eab809a77e5f
2014-03-28 15:45:06 +01:00
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
b15b4cbb35 coverity#708084 Uninitialized scalar field
Change-Id: I979790b472c2a42107db34ebad675ed8447fa4e7
2014-03-24 12:12:32 +00:00
6f97d7615c coverity#708082 Uninitialized scalar field
Change-Id: Ie3d3d87040124c4e2416ca64ad2babe5fa38a880
2014-03-24 12:12:32 +00:00
71c88f02a0 sc: prefer passing OUString by reference
Change-Id: I85e8823e872bf53182ce90576225e462edb1930a
2014-03-17 13:30:50 +02:00
fae1e19af0 Related: rhbz#1076264 intermittent a11y crash in calc
http://retrace.fedoraproject.org/faf/reports/338291/

this crash refuses to be captured alive. But seeing as
we sometimes check mpViewShell against NULL and sometimes check
GetViewData against NULL its worth making those checks everytime
for consistency

see also...

rhbz#923993 rhbz#896711 rhbz#602273 rhbz#577595 lp#811057 lp#760665

Change-Id: I5553848018f500b63ade60bcfc756a736b27c64f
2014-03-14 20:35:39 +00:00
c15913b273 Spelling fix: suported
Change-Id: I3b67edd5ba4541a65cb0916abea6db1362c32afd
2014-03-12 15:56:04 +02:00
a96ac994f0 Resolves: #i123622# [ia2] Calc: No focus event fired on cell...
when new spreadsheet is created

(cherry picked from commit 572001d5865e4d11523e72a506e9a6eca7f23786)

Change-Id: I10212bf9ddeb9eb06c1d9105951a5eb9d8578029
2014-03-11 10:04:22 +00:00
d442a6460f svx: sal_Bool->bool
and optimise some methods in bmpmask.hxx - they were unconditionally
returning true, so convert them to void return type.

Change-Id: If8b092a857ab80ead93112b0d627e41d5ccb3cf9
2014-03-11 08:18:14 +02:00
ea2fb5f8f9 svx: sal_Bool->bool
Change-Id: I360b459102e61562b7cd1987545288d5ce8aed6b
2014-03-11 08:18:13 +02:00
a96b9043ff sc: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I4ecb4db1fdebf6f5f29262474d1e7cc490792a7f
2014-03-10 17:39:57 +01:00
18447b0464 coverity#705831 Dereference before null check
Change-Id: I8403e95cb452f2623a5a0bad63c54a3367b73e8c
2014-03-07 12:19:26 +00:00
6aeb4981f4 coverity#705834 Dereference before null check
Change-Id: I130042c2ff5dbaf0afb94d3600c9573d348b1df3
2014-03-07 12:19:26 +00:00
4ff02c40b9 coverity#705833 Dereference before null check
Change-Id: I6532774fb78c1d2cf293163c3bf99e0c52770b65
2014-03-07 12:19:26 +00:00
84862db95a Remove visual noise from sc
Conflicts:
	sc/source/ui/inc/docfunc.hxx

Change-Id: I9314437ed3dd60e84d28c08ac0a2d1ed7bd1daf8
Reviewed-on: https://gerrit.libreoffice.org/8301
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-03 11:04:44 -06:00
0f60ab5ebf editeng: sal_Bool->bool
Change-Id: I4fc276e320294d57eb667b6db8e5eff078bc28b3
2014-03-03 08:59:37 +02:00
0786a72308 editeng: sal_Bool->bool
this had to be done in conjunction with changing
  include/svx/unoshtxt.hxx
because there are two virtual methods "bool IsValid" in two different
base classes and some subclasses are overriding both base-class
methods at once.

Change-Id: Ib43fc5000b443057caaa513b4efeaa6fd16e4260
2014-03-03 08:59:36 +02:00
ab110f1c5c coverity#1187681 Dereference null return value
Change-Id: I8043f4c2abe6b63162eb79eb64809223a9846b21
2014-02-27 12:58:46 +00:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
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
628dbbc99e cid#708083 Uninitialized pointer field
Change-Id: Ic0b5b9f70c09127c4b73a4faf38383cb4cfa1d67
2014-02-21 11:59:10 +02:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
76a38b8550 sal_Bool->bool
Change-Id: I1269075218632a2fe6979c85c395e267ddd80008
2014-02-19 13:05:12 +02:00
0beb64bfcd cid#736789 dereference before null check
Change-Id: I657880e7ed37f9933efcfc110daae8b4c4791497
2014-02-17 14:04:54 +02:00
2d9025dad4 sal_Bool->bool
Change-Id: Id51005576c6c4a08eb2de32fe8a51dd4331808a6
2014-02-14 14:15:19 +02:00
bd5606b6c9 sal_Bool->bool
Change-Id: I4ae27d301b81652eb3e172057c63d46794f25c72
2014-02-14 14:15:19 +02:00
08e1cfecb5 sal_Bool->bool
Change-Id: I4cebd15a8bae319becabf1b69d650d5b3dc6718f
2014-02-14 14:15:18 +02:00
5f0878472c sal_bool->bool
Change-Id: I684b6243ad87f9941e9f2147c2eee6f975cb8179
2014-02-14 14:15:18 +02:00
6c9aca7763 sal_Bool->bool
Change-Id: I138508cae0e342f7b259607ffb0403d985103326
2014-02-14 14:15:18 +02:00
58c957e39b sal_Bool->bool
Change-Id: Iac3d82294985ed1689b7f4c267b6311caddd50a5
2014-02-14 14:15:18 +02:00