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
9dd52eb86a
use GLIB_CHECK_VERSION instead of GLIB_VERSION_X_XX
...
Michael Meeks pointed out that the latter can cause problems.
Change-Id: I68e7f8c6dcfae52305738b2a8cdee72e9c2c7f93
2013-04-19 17:46:28 +04:00
025857d81d
WaE: g_type_init has been deprecated since GLib 2.36
...
Change-Id: Ied9b2c2424d780d589cb1b07df0ec38107d49829
Reviewed-on: https://gerrit.libreoffice.org/3434
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2013-04-18 09:19:46 +00:00
ba044b1e96
remove needless forward rtl::OUString declarations
...
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +02:00
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
aa753f01ba
-Wunused-macros
...
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-27 09:36:53 +01:00
39d45390f4
removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
...
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms
Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2013-03-19 10:48:30 +00:00
8b27d78b4a
automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
...
Done with a perl regex:
s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms
Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec
Reviewed-on: https://gerrit.libreoffice.org/2832
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: Thomas Arnhold <thomas@arnhold.org >
2013-03-19 09:00:26 +00:00
a2454a42ad
fdo#43460: use isEmpty()
...
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-09 20:32:39 +01:00
895898596c
WIP: fdo#47011 autosave feature
...
Change-Id: Ib2cbcc33e6188c60c183b5f47e9ae9c9d4c91b95
2013-03-07 10:11:47 +01:00
26e37ca4c7
doubled includes
...
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-04 13:58:40 +01:00
e9aff4b508
fdo#57950: Remove some chained appends in shell
...
And remove some *STRINGPARAM macros.
Change-Id: Idebee475e4b383f5f390040515bdfa7c49a24c1d
Reviewed-on: https://gerrit.libreoffice.org/1682
Reviewed-by: Luboš Luňák <l.lunak@suse.cz >
Tested-by: Luboš Luňák <l.lunak@suse.cz >
2013-01-15 18:17:17 +00:00
30c77b4c3f
-Werror,-Wunused-result
...
Change-Id: I25cf94e9abaf976df9a8a0b8ee5f9955d623b006
2012-12-05 17:29:50 +01:00
66a175834c
c++ API: use css alias in generated headers, adds global css decl
...
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star
Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.
Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
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
565acfef76
Use prefix
...
Change-Id: Ife93e37f8b24f3ce96b55c5a221f0f929b789f60
2012-10-02 12:07:06 +03:00
4d7b955705
libmerged: add more libraries
...
Change-Id: Ia35e93b9632cb2bbfce0d40f8491044d56f2bb05
2012-08-25 12:45:35 +02:00
6fb127a62e
Replace use_internal_api with use_udk_api etc. where appropriate
...
Change-Id: I5e216ca01830a6568159ee8e9265938667f201a1
2012-08-22 15:12:22 +02:00
a767448225
Search for char instead of 1 char long string, when possible.
...
It is faster and even avoid memory allocation somtimes.
Change-Id: Ic12ff70e95953de44ef5798131150669d07a5445
2012-07-13 16:36:04 +02:00
5a44320a4d
Related: fdo#30763 always fill in default name under GNOME
...
regardless of whether lockdown is in effect.
Change-Id: I3c5d3aba89f8cedb6e3e4bd2ecc1af954a953306
2012-07-09 12:16:57 +01:00
1ab899c4c8
.xml files don't need executable bits
...
Change-Id: I399d086181a9f513cd95157e815551f0be9b9e95
2012-06-22 22:39:31 +02:00
e9c3dcaf05
.cxx files don't need executable bits
...
Change-Id: Ic27d7728025b3d666c0ebaf9ec4cd2006d0c89bf
2012-06-22 22:39:29 +02:00
b9042fad7c
re-base on ALv2 code.
...
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
02d9bd3b14
fix typo: = -> ==
...
Change-Id: Iba320b00bdef3704bdfe1abe2a60b8c767a571ec
2012-06-13 06:06:43 +02:00
0dded0d18a
fdo#47044: Adapt to different Windows versions' InternetQueryOption behavior
...
Change-Id: Ia4d1d8f903872e5eefae2d9687866243b9055a13
2012-06-08 16:54:18 +02:00
de0c09bb42
targeted string re-work
...
Change-Id: I6eb2242506ef2d230770e513579caf4455ec37d5
2012-06-02 22:43:34 -05:00
d95d58af08
nuke unused namespace
...
Change-Id: Ic00cdfce4172af0a2f0aa1aa33ef5e386d407976
2012-06-01 01:04:50 +09:00
6e6d81e9cf
targetted SAL_N_ELEMENTS reversion.
...
Change-Id: I30be93ccaeb1f9fd17cbe9e3ed3165e094810b2e
2012-05-29 18:03:34 +01:00
b6ce391171
-Werror=deprecated-declarations
...
g_strcasecmp -> g_ascii_strcasecmp, hopefully the latter is already
available in oldest relevant glib.
Change-Id: Iac47ebd511672d4ca08d4dc998a536939d4a98c3
2012-05-29 09:01:32 +02:00
9cea55e10d
WaE incomplete cppu::ImplementationEntry
...
Change-Id: I152ffd56ae3b95fce87056292e909e9bf5daa9e9
2012-05-29 07:33:49 +02:00
6456d3d20c
macbacked.cxx is really and objective c++ source -> rename .mm
...
Change-Id: I0e0ed02f08358b2caeddbaad7d511c7ec70e68b4
2012-05-29 07:33:46 +02:00
d4efa8b0cf
gbuildize shell
...
Change-Id: I91a89f9d0bd1eb88a94179f1c1a41bc832599fed
2012-05-29 07:33:44 +02:00
07b3d083b4
TDE integration
...
Change-Id: I6f468005c8d8d99d9251a9c4fe4629b98bc4aa5e
2012-05-14 20:09:41 -05:00
7bec04312d
WaE: initialization of pointer to null from a constant boolean expression
2012-04-22 21:44:29 +03:00
a219edfbb6
Don't check for ORBit < 2.8
...
ORBit 2.8 was released in 2003 so let's assume that this isn't being used. Also
the assumption is that it's coming in through GConf, which isn't true with GConf
3 onwards, released July 2011.
2012-04-19 15:01:52 +01:00
f6eba1a27a
fix library link order to work with link --as-needed
2012-04-13 16:54:06 +02:00
e4fb171d3a
Replaced a few equal calls with ==
2012-04-08 19:24:00 +02:00
d6bc02f8c4
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
2012-04-06 20:03:42 +02:00
27cea710fd
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 20:03:42 +02:00
9429bbb0c4
.component files don't need executable bits
2012-03-23 21:58:14 +01:00
68f2753710
.h files don't need executable bits
2012-03-23 21:58:13 +01:00
04c8f56627
WaE: missing initializer for member
2012-03-12 08:53:50 +01:00
3eb65ae04a
WaE: variable 'bRet' set but not used
2012-03-12 08:53:48 +01:00
a6ed487d97
Decrease verbiage a little bit
2012-01-27 15:52:23 +02:00
7c704c78d3
Removed some unused parameters; added SAL_UNUSED_PARAMETER.
...
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones. To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
5451e9c702
catch exception by constant reference
2011-12-26 03:38:50 +09:00
53223466d6
remove include of pch header from shell
2011-11-27 13:21:45 -06:00
c7524e9441
Bypass more stuff on non-desktop OSes and enforce "lib" prefix for Android
2011-11-26 00:23:45 +02:00
5f6c37b1eb
cppcheck reduce scope of var in shell/...gconfaccess.cxx
2011-10-07 15:57:49 +02:00
e012efa0b6
chmod -x
2011-08-22 22:38:36 +03:00