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
318f2b64cc
remove some createFromAscii usage
...
there are a lot more of them:
git grep 'createFromAscii[^)]*"'
Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29 16:23:23 +02:00
6391e823dc
Replace buggy pgsql-sdbc datetime functions with dbtools equivalents
...
In particular, the string2time function segfaults when called on an empty string
(unconditionally tries to access the n-th character without checking whether the string is that long)
this happens in particular when reading a column of type TIME with a NULL value
Change-Id: I302044f67a92fe20685ce677ba3affdb9b44cb53
2013-06-27 14:37:13 +02:00
caab53cf21
fdo#43460 connectivity,extensions,filter,idl,idlc: use isEmpty()
...
Change-Id: I78ba286be5aa4d731f734e5eb16adb77c686aad9
Reviewed-on: https://gerrit.libreoffice.org/4325
Reviewed-by: Noel Power <noel.power@suse.com >
Tested-by: Noel Power <noel.power@suse.com >
2013-06-18 17:31:20 +00:00
0a52587c7a
cppcheck: fix uninitMemberVar for postgresql part
...
Change-Id: Id37b961ff04ec9cebcc9d35434ccfdff0b512235
2013-06-16 21:39:39 +02:00
1e4422a4b4
re-base on ALv2 code. Includes:
...
Patches contributed by Mathias Bauer
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394707
http://svn.apache.org/viewvc?view=revision&revision=1394326
http://svn.apache.org/viewvc?view=revision&revision=1397337
http://svn.apache.org/viewvc?view=revision&revision=1397315
http://svn.apache.org/viewvc?view=revision&revision=1396797
Patches contributed by Andre Fischer
Fixed getcsym.awk to handle #-comments that contain special regexp chars.
http://svn.apache.org/viewvc?view=revision&revision=1230971
118778: Added ADDITIONAL_REPOSITORIES environment variable and its
automatic setup in configure.
http://svn.apache.org/viewvc?view=revision&revision=1232004
118160: Added external CoinMP library.
http://svn.apache.org/viewvc?view=revision&revision=1233909
Patches contributed by Herbert Duerr
#i119168# use generic LICENSE file for langpacks and sdks
http://svn.apache.org/viewvc?view=revision&revision=1310178
macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars
http://svn.apache.org/viewvc?view=revision&revision=1183367
allow gbuild with empty sysroot on linux
http://svn.apache.org/viewvc?view=revision&revision=1179186
Patches contributed by Ingo Schmidt
native373: #164472# improvements for msi database
http://svn.apache.org/viewvc?view=revision&revision=1167540
http://svn.apache.org/viewvc?view=revision&revision=1167539
Patches contributed by Jurgen Schmidt
adapt setup package scripts to handle special DS_Store file for
developer snapshot builds
http://svn.apache.org/viewvc?view=revision&revision=1232430
imported patch extensions_i117681.patch
http://svn.apache.org/viewvc?view=revision&revision=1172102
Patches contributed by Michael Stahl
gbuild: RepositoryFixes.mk should be optional
http://svn.apache.org/viewvc?view=revision&revision=1166123
xslt filter: remove the FLA horror
wordml import filter: replace FLA usage with plain XSLT
http://svn.apache.org/viewvc?view=revision&revision=1363727
Patch contributed by Oliver-Rainer Wittmann
i#88652: applied patch, remove unicows deps
http://svn.apache.org/viewvc?view=revision&revision=1177585
Remove lots of OS2 conditionals, re-extract Rhino Java, unwind
cppunit pieces, cleanup Mac image bits, remove coin-mp and
re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand
MPLv2 subset checking.
Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-06-03 11:41:36 +01:00
3e52762c5a
Move to MPLv2 license headers, with ESC decision and author's permission.
...
Change-Id: I9f1102d4f0e189a048d8fccfe9cae246c0136311
2013-05-02 12:49:20 +01:00
72e5d0c8fb
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-30 13:34:06 +01:00
8ad743ca8d
pgsql-sdbc: conninfo keywords as static table instead of series of "else if"
...
New keywords can now simply be added to a static array rather than
adding a new "else if" blocks for each keyword.
Change-Id: Ib581b3e834a57e0dfa9d139bcb4ae7a0a52a5472
2013-04-29 10:20:32 +02:00
eeab70fd53
-Werror,-Wformat
...
Change-Id: I10eb204e63dee480a54494f5869f1f1b2e4bfc92
2013-04-19 08:03:09 +02:00
9830fd36db
date/time IDL datatypes incompatible change
...
- nanosecond precision
- signed (allowed negative) year
Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.
Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
fe294e9208
pgsql-sdbc: set tablename even if we do not know the schema
...
Change-Id: I74c04e1262cc413696a12aca9af603beded7b07f
2013-04-10 18:12:09 +02:00
b8361945d6
pgsql-sdbc: ResultSetMetaData::getTableName return tablename (without schema)
...
Change-Id: I319ba91045fa43922d7b694a4f13322295590c81
2013-04-10 18:12:08 +02:00
e816271818
connectivty: postgres: fix a bunch of empty for body warnings
...
Change-Id: Idd91616e43842142450c94ac8a61f4f29f4eb1b7
2013-04-10 16:21:41 +02: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
5ce754ad4b
coverity#982290 Logically dead code
...
Change-Id: Ia684369faa5fd0eb854d204ac7e8dbf74f032606
Reviewed-on: https://gerrit.libreoffice.org/3067
Reviewed-by: Christoph Brill <egore911@gmail.com >
Reviewed-by: Petr Mladek <pmladek@suse.cz >
Tested-by: Petr Mladek <pmladek@suse.cz >
2013-03-28 13:14:36 +00:00
2d9ce9191d
Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...
...which is a confusing overload with unexpectedly different semantics from the
one-parameter form. In preparation of marking it as deprecated.
Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
2013-03-20 13:05:35 +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
4c0c23af21
Simplify equalsIgnoreAsciiCaseAscii[L] calls
...
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01: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
6dddefc6e7
fdo#43460: use isEmpty()
...
Change-Id: Ia768e684d3cf255239c04d024b35488830cc9fe6
2013-03-09 21:47:31 +01:00
a6b9173005
fdo#60148 Clean up warnings from the Clang compiler plugin
...
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671
loplugin: clean warnings: unused variables, incorrect indentation and log area.
Reviewed-on: https://gerrit.libreoffice.org/2544
Reviewed-by: Eike Rathke <erack@redhat.com >
Tested-by: Eike Rathke <erack@redhat.com >
2013-03-06 12:59:26 +00:00
41e03a166e
doubled using
...
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-03-05 12:34:33 +01:00
766170b61e
Removing useless STLPort specific code
...
Change-Id: Id4c5907b2431130018bff434049d9e85ae689793
Reviewed-on: https://gerrit.libreoffice.org/2365
Reviewed-by: Thomas Arnhold <thomas@arnhold.org >
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Niko Rönkkö <ronkko@iki.fi >
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com >
2013-03-02 05:43:29 +00:00
405caad685
loplugin: unused variables
...
Change-Id: I46a748bf2c54d15c0f5718901197f3b4c34b82bf
2013-02-25 03:14:00 +01:00
66e5cbc55a
Fix typo "sucessfully" -> "successfully"
...
Change-Id: I01c85e4d3853c44fa05acc3019bc35c56c4f655e
2013-02-23 15:42:54 +01:00
f68cd77923
Fix type unkown -> unknown
...
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-21 21:50:01 +01:00
9953c1b5a6
pure comment: write down interesting idea gleaned at FOSDEM
...
Change-Id: I96685f405989fdd3b090b6a482edf8ad65bfd4e9
2013-02-19 12:35:01 +01:00
77fd448d09
Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING
...
Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f
Reviewed-on: https://gerrit.libreoffice.org/1954
Reviewed-by: Tor Lillqvist <tml@iki.fi >
Tested-by: Tor Lillqvist <tml@iki.fi >
2013-02-14 13:20:14 +00:00
c69436f7b7
fdo#57950: Remove some chained appends in connectivity and..
...
... remove some RTL* macros.
Change-Id: I919d17e14334c9220b47775355512df8dfa00bca
Reviewed-on: https://gerrit.libreoffice.org/1768
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br >
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br >
2013-01-21 22:51:41 +00:00
a99bf813c0
Some cppcheck cleaning
...
Change-Id: I5e8c768981dc6b8029bdc7eb8887562ccc18a5e2
2012-12-07 22:19:36 +01:00
a3ce60eb3c
We only support MSVC 2008 (_MSC_VER 1500) or later
...
We can drop or simplify many conditionals.
Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28 20:53:40 +02:00
e609841e8f
cppCheck: remove dead assignment and dead variables
...
Change-Id: I3f0eae93be7f362ff70f8a544c46cd500d2ca50c
Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr >
Reviewed-on: https://gerrit.libreoffice.org/1153
Reviewed-by: Eike Rathke <erack@redhat.com >
Tested-by: Eike Rathke <erack@redhat.com >
2012-11-25 12:19:22 +00:00
f42a930976
Use prefixes for these UNO components
...
Change-Id: I719f10818fd211bfe60e5351a5de53a716fdf20f
2012-10-01 21:54:57 +03:00
c2ca6fabd1
Use comphelper::getComponentContext
...
...and some further clean up.
Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-29 18:18:28 +02:00
843c83f640
WaE: fix some "empty body" warnings on Mac
...
Change-Id: Ib65d9dac988851fa90a44cad246ac24e8bfd3370
2012-09-12 22:53:29 +01:00
1488e24a34
connectivity: fix some "empty body" warnings on Mac
...
Change-Id: I832b369d87da9b622759bf7ddd14f95475256c38
2012-09-12 20:22:36 +02:00
5466323a8b
-Werror,-Wunused-value (Clang towards 3.2)
...
Change-Id: I2ebaa95bdb446ec10ab015ad2a792e750859da7f
2012-08-31 09:04:14 +02:00
8638f1e72a
fdo#46808, Adapt script::Converter service code to new style
...
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-27 15:40:07 +02:00
d88325f73e
Revert "fix for fdo#48200.diff import regrex state for filter"
...
This reverts commit 094654fcebe35af07a9e12137becdf85277ef706.
2012-08-16 17:43:12 +01:00
094654fceb
fix for fdo#48200.diff import regrex state for filter
...
Change-Id: I46b07341e96d78130e6301e40fa32df6ed2c7879
2012-08-16 17:40:05 +01:00
f50a41437e
fdo#53246 Fresh postgresql-sdbc implementation names
...
The descriptions for fdo#53246 "Libo36 does not start, InvalidRegistryException
from program/services/postgresql-sdbc.rdb" make it look like the user had
installed the functionality that comes bundled in postgresql-sdbc.rdb also as an
extension installed per-user or shared.
<http://wiki.documentfoundation.org/PostgreSQL-SDBC > indicates that what is now
bundled due to c97d74b5f0608866bad3f7ae943811bdff4f7986 "fdo#45090: Changed
postgresql-sdbc from bundled oxt to proper optional part" indeed was once
available as a freestanding postgresql-sdbc-*.oxt that could have been installed
per-user or shared.
To prevent problems with such scenarios, rename the relevant implementation
names by adding a ".noext" suffix.
Change-Id: I43414a64461ba643f0ca0b2749450099cb6c8a4d
2012-08-13 10:05:57 +02:00
c04c2114d9
Remove unused macros
...
Change-Id: I184a7f9c65dd762407b2431d9c6557e718b954b2
2012-08-05 20:31:47 +02:00
2c5cff6930
pq_allocator.hxx: work around spurious MSVC warning
...
Change-Id: I6c516e4bd125c4075c195980a2fcdb58382c38dd
2012-07-11 00:15:05 +02:00
bd493f15a5
use SAL_UNUSED_PARAMETER instead of local macro
2012-07-04 21:28:00 +02:00
e5c28b86be
Remove commented out code (includes)
...
Change-Id: I0a11d09544c10d78a2036a5c3c94132b17fbfbe8
2012-06-27 13:32:44 +02:00
66cd9eeb90
Remove various commented out defines
...
Most of them in hrc files.
Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-25 14:12:57 +02:00
27b88d815d
removed unused forward declarations of class
...
Change-Id: I814f8bdf4e4015f8e4eea34533db4ed8d6a7496e
2012-06-25 10:13:44 +09:00
54a908a003
nuke unused defines
...
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-04 23:26:57 +09:00