Stephan Bergmann
175e2adfd1
loplugin:nullptr (automatic rewrite)
...
Change-Id: Ied9204441c07f1f6a6026c8c1a2fa21b93b98e1a
2015-11-10 10:31:54 +01:00
Noel Grandin
4a00be7ade
com::sun::star->css in toolkit/
...
Change-Id: Ia8feca46fa64a300235730e1248fa5fda0783ba2
Reviewed-on: https://gerrit.libreoffice.org/19853
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-09 09:39:36 +00:00
Caolán McNamara
3f8a28f413
coverity#1338239 Uncaught exception
...
Change-Id: I99ea322db83a6deb67483435de1549380bfec7fb
2015-11-06 12:15:49 +00:00
Noel Grandin
b37b7b5cd5
use uno::Reference::set method instead of assignment
...
Change-Id: Id036f867e75d03d8347cc32a1011c5cdda1dcc73
2015-11-05 11:18:41 +02:00
Noel Grandin
59b072e22b
yyyyy
...
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-04 14:10:44 +02:00
Michael Stahl
021a5e7123
toolkit: pMouseEvt must not be captured
...
Its lifetime is bounded by the currently processed event.
(regression from 76e75d2dd6
)
Change-Id: I4896b161295eeab3bbf08e59c5a82afac4338f08
2015-11-02 12:33:11 +01:00
Fabio Buso
76e75d2dd6
tdf#93243 replace boost::bind with c++11 lambdas in toolkit/
...
Change-Id: I33ba22fc5b3fa4d9b2b79f33b9abb7a2a0bbf9a2
Reviewed-on: https://gerrit.libreoffice.org/19716
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-01 11:21:08 +00:00
Noel Grandin
b4b7703e43
cppcheck:variableScope
...
Change-Id: I9b671637fbe0f32e695d22b74bfb40a39a9fe884
Reviewed-on: https://gerrit.libreoffice.org/19364
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-10-15 06:49:23 +00:00
Andrea Gelmini
a2a5187a8f
Fix typos
...
Change-Id: Ifddd2533b767924791338555031b848c59980c52
Reviewed-on: https://gerrit.libreoffice.org/18989
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org >
Tested-by: Joren De Cuyper <jorendc@libreoffice.org >
2015-09-29 22:19:19 +00:00
Andrea Gelmini
462e986e0d
Fix typos
...
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec
Reviewed-on: https://gerrit.libreoffice.org/16712
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com >
2015-07-04 10:18:19 +00:00
Noel Grandin
b55166d266
Revert "return and use std::vector from OInterfaceContainerHelper"
...
This reverts commit e57314f61f
.
2015-06-29 10:11:53 +02:00
Noel Grandin
e57314f61f
return and use std::vector from OInterfaceContainerHelper
...
since most of the time we don’t need a heavyweight uno::Sequence.
Adds a new method getElementsAsVector().
Change-Id: I9e72bef0c0c723ffd0dd7d4152db5baec6784a7a
Reviewed-on: https://gerrit.libreoffice.org/15747
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-06-29 07:25:22 +00:00
Andrea Gelmini
9b7e1bf43d
Fix typos
...
Change-Id: Ieaf67cf597e05dbae5affa153af907fda4462a41
Reviewed-on: https://gerrit.libreoffice.org/16295
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2015-06-16 10:59:53 +00:00
Noel Grandin
4ea281a3cc
cppcheck:redundantAssignment
...
Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
2015-06-15 13:34:14 +02:00
Stephan Bergmann
e5de5696a4
loplugin:cstylecast: deal with remaining pointer casts
...
Change-Id: Ib636a7566825dd4bd30cc7e8c2e6b744b619b59b
2015-06-08 16:29:04 +02:00
Stephan Bergmann
64b33886ef
loplugin:cstylecast: deal with those that are (technically) const_cast
...
Change-Id: Ie7129c66f236b93f505dad9ea672ab777cb380d1
2015-06-02 11:28:38 +02:00
Caolán McNamara
d2275c825d
cppcheck: noExplicitConstructor
...
Change-Id: I955b04396d27e88ce228f180275955071da83ec6
2015-05-26 14:11:12 +01:00
Stephan Bergmann
54e87df11f
Change INetProtocol enumerators to CamelCase
...
...to avoid clashes with macros and poor warnings about hiding global FILE
Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02 18:33:37 +02:00
Stephan Bergmann
44b3e56bb4
Change INetProtocol to scoped enumeration
...
...and fix o3tl::enumarray::operator [] const overload
Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02 16:30:34 +02:00
Stephan Bergmann
45fe77164c
toolkit: Use appropriate OUString functions on string constants
...
Change-Id: I3bb1e560eb325046f5b170da0c4c46c1139f3225
2014-12-12 12:23:58 +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
Brij Mohan Lal Srivastava
d32be3ace8
fdo#86023 - O[U]String needs a 'clear' method
...
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com >
2014-11-14 09:20:38 +01:00
Andrea Gelmini
da40cac540
Fix common typos. No automatic tools. Handmade…
...
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-11-12 11:04:11 +00:00
Noel Grandin
705c48d32e
fdo#38835 strip out OUString globals
...
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.
Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-05 08:44:19 +02:00
Noel Grandin
dac4ca5f68
new loplugin: externalandnotdefined
...
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.
Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
Stephan Bergmann
d656138b12
loplugin:staticcall
...
Change-Id: I9e643bd43e6e0f027a7e17b2d5d867c0cb452052
2014-06-13 17:54:35 +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
Noel Grandin
4f9b21248f
simplify ternary conditions "xxx ? yyy : false"
...
Look for code like:
xxx ? yyy : false;
Which can be simplified to:
xxx && yyy
Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00
Tor Lillqvist
1a04354590
Move headers that are private to toolkit there, then
...
Change-Id: I12df9dc88960a6f78e85ab2f604782d1a4f9faf6
2014-04-19 11:24:35 +03: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
Stephan Bergmann
5e21a413c7
cppuhelper: retrofit std::exception into overriding exception specs
...
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
e90c27f5e1
Remove visual noise from toolkit
...
Change-Id: I1704d6ac497f2e47a813813640ead14c5fa480d9
Reviewed-on: https://gerrit.libreoffice.org/8326
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-26 05:51:48 -06:00
Stephan Bergmann
146c7c5c89
toolkit: sal_Bool -> bool
...
Change-Id: I5153c4413004d1b50cc503b3e70657bc831a5793
2014-02-24 11:13:42 +01: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
Caolán McNamara
02c17c1dd3
coverity#738917 Uninitialized scalar field
...
Change-Id: I6d1b6e201f3ec57c727e93ff69a212c8138998d6
2014-02-18 15:18:10 +00:00
Matúš Kukan
6dbff3aae9
typo: wrong name
...
Change-Id: I7e041add4adc0f84dd7d9d9d74ccaf80ecc57776
2014-01-23 23:39:12 +01:00
Matúš Kukan
08d10512b4
tk: Constructor feature for UnoControlTabPageContainer(Model).
...
Change-Id: I0e32eb49235a1769f8dacc1af95ee863ee514621
2014-01-23 23:39:02 +01:00
Matúš Kukan
badc48eb75
tk: Constructor feature for UnoControlTabPage(Model).
...
Change-Id: I7e6955c2d09e1860885f8e2eaa347332421c1c69
2014-01-23 23:39:00 +01:00
Jürgen Schmidt
1c80f3ab5c
Resolves: #i120358# apply patch to support properties from tab model
...
Patch By: hanya
Review By: jsc
(cherry picked from commit aa098b9e612b30a916cd4ce002133d499d7f711a)
Conflicts:
include/toolkit/controls/controlmodelcontainerbase.hxx
Change-Id: I4c038c08d24ceceba606154573abbb1cd41cf7cb
2013-12-20 15:26:15 +00:00
Noel Grandin
0a9ef5a18e
convert OUString 0==compareToAscii to equalsAscii
...
Convert code like:
0 == aStr.compareToAscii("XXX")
to
aStr.equalsAscii("XXX")
which is both clearer and faster.
Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11 12:58:12 +02:00
Luboš Luňák
64b993e046
finish deprecation of O(U)String::valueOf()
...
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.
Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Thomas Arnhold
ba0a57702c
remove OUString wrap for string literals
...
For some functions and all kinds of Exceptions.
CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException
createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService
bash command:
for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
| cut -d ':' -f1 | sort -u
| xargs sed -i
-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
-e "s/\($i.*\)\"+ /\1\" + /g";
done
Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2013-06-29 21:52:54 +00:00
Noel Grandin
dcbaf7c253
remove unused componentcontext.hxx includes
...
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-05 08:13:21 +02:00
Noel Grandin
6a043e9c0a
Use the new type-checking Reference constructor to reduce code noise
...
Also create a Clang compiler plugin to detect such cases.
Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2013-05-22 10:44:29 +00: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
Chr. Rossmanith
57e984adca
Remove RTL_CONSTASCII_(U)STRINGPARAM (toolkit)
...
Change-Id: I558a97be9ed883242455e6fd29267aed5d0a550c
Reviewed-on: https://gerrit.libreoffice.org/2772
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-03-16 17:15:50 +00:00
Thomas Arnhold
26e37ca4c7
doubled includes
...
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-04 13:58:40 +01:00
Noel Grandin
46fe5e5e06
fdo#46808, convert UnoControl and sub-classes to XComponentContext
...
Change-Id: I4ade267a44620f5a3af8009ac57a2456c62b83bc
2013-01-09 08:08:19 +02:00
Luboš Luňák
83154f9234
mark lcl_ functions static or rename them if they are not local at all
...
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html
Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
2012-10-12 13:34:48 +02:00
Michael Meeks
c4008ef546
re-base on ALv2 code. Includes:
...
tkr41: #117828# office crash fixed . (null pointer) + add unit test
Patch contributed by Tobias Krause
http://svn.apache.org/viewvc?view=revision&revision=1172105
Do not add targets for junit tests when junit is disabled.
Patch contributed by Andre Fischer
http://svn.apache.org/viewvc?view=revision&revision=1241508
remove the OutDev::GetKernPair* stubs completely
Patch contributed by Herbert Duerr
http://svn.apache.org/viewvc?view=revision&revision=1179221
reverting un-necessary OS/2 conditionals.
2012-10-03 16:56:06 +01:00