Commit Graph

64 Commits

Author SHA1 Message Date
Noel Grandin
4a87597e42 remove unused struct
Change-Id: Icabf74fde82e917826f20ffdc8fcd71a26538bbe
2015-03-02 08:59:19 +02:00
Caolán McNamara
ca8787a981 boost::unordered_map->std::unordered_map
Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
2015-01-04 12:51:09 +00:00
Stephan Bergmann
bca00da686 connectivity: Use appropriate OUString functions on string constants
Change-Id: I10b2ddf9dcc83219fea8eb55783507eed52702e8
2014-12-12 17:51:11 +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
Caolán McNamara
73d4d9a583 Related: #i124896# remove obsoleted pq_allocator.hxx
Change-Id: I8a2b54c97f20e581b9703bf33dbba537c2f603c2
2014-05-15 15:03:50 +01:00
Noel Grandin
199d333f13 connectivity: sal_Bool->bool
Change-Id: I96371121ce6697f153f4e973e65831ea2265eb56
2014-04-16 11:51:51 +02:00
Thomas Arnhold
618a0f8c03 whitespace for include statements
Change-Id: I76bd0ef07a2fa134e948724cecdf539ffe6ccb8a
2014-04-15 13:43:13 +02:00
Thomas Arnhold
2805ac13dc typo: choosen -> chosen 2014-04-14 12:32:02 +02:00
Noel Grandin
358be80f65 comphelper,connectivity: prefer passing OUString by reference
Change-Id: I19b2613918ec62ee39bb3e447f3587c5dba1e36a
2014-03-14 07:47:01 +02:00
Alexander Wilms
ac9212feed Remove visual noise from connectivity
Conflicts:
	connectivity/source/inc/odbc/OConnection.hxx

Change-Id: I5ca98359e18cf1b27bf53037dde211774d798626
Reviewed-on: https://gerrit.libreoffice.org/8245
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 06:54:35 -06:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Caolán McNamara
61160e0454 add missing vim modelines
Change-Id: I72d565b77fad98e176e2f47368201ad1585aef3f
2014-02-18 15:18:09 +00:00
Stephan Bergmann
ead1525417 bool improvements
Change-Id: If35c939adede6a912dee14714a7ceeab84ac977e
2014-01-28 20:24:39 +01:00
Noel Grandin
f8b2265419 remove RTL_CONSTASCII_STRINGPARAM in OUString::matchAsciiL calls
Convert code like:
    defaultValue.matchAsciiL( RTL_CONSTASCII_STRINGPARAM( "nextval(" ) );
to:
    defaultValue.startsWith( "nextval(" );

Change-Id: I77bdcbf46bec6ded3c16a8248634b1424a1eb4f0
2013-11-20 13:56:09 +02:00
Noel Grandin
52bbd9cc00 remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
    aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
    aStrBuf.append( "ln(x)" );
which compiles down to the same code.

Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-20 10:07:32 +02: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
Noel Grandin
0e6a2601b3 Convert code that calls OUString::getStr()[] to use the [] operator
This also means that this code now gets bounds checked in debug builds.

Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-04 08:06:10 +02:00
Stephan Bergmann
7f02173bba -Werror,-Wunused-const-variable
Change-Id: Ic4edbbc0bf74887ab9624e4551b54ecbe3538108
2013-10-02 16:49:31 +02:00
Andras Timar
6ea6a422fb s/wiki.services.openoffice.org/wiki.openoffice.org/g
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-07 14:21:22 +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
Michael Meeks
3e52762c5a Move to MPLv2 license headers, with ESC decision and author's permission.
Change-Id: I9f1102d4f0e189a048d8fccfe9cae246c0136311
2013-05-02 12:49:20 +01:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01: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
Stephan Bergmann
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
Stephan Bergmann
4c0c23af21 Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01:00
Thomas Arnhold
41e03a166e doubled using
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-03-05 12:34:33 +01:00
Lionel Elie Mamane
9953c1b5a6 pure comment: write down interesting idea gleaned at FOSDEM
Change-Id: I96685f405989fdd3b090b6a482edf8ad65bfd4e9
2013-02-19 12:35:01 +01:00
Jean-Noël Rouvignac
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
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Lionel Elie Mamane
fdd70e63ee fdo#46675: fixup 2012-02-27 13:48:50 +01:00
Lionel Elie Mamane
ee0cb9d05d fdo#46675: expand group memberships in get*Privileges 2012-02-27 13:14:02 +01:00
Takeshi Abe
03591233c1 Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
2012-02-18 23:19:41 +09:00
Takeshi Abe
2b1758a2dc Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) to equalsAscii(...) 2012-02-10 23:01:07 +09:00
Lionel Elie Mamane
f21eaff8ea fdo#45249 declare support for Core SQL -> Base allows user aggregate functions 2012-02-09 18:35:13 +01:00
Caolán McNamara
5e2b41dbfe unsigned int->sal_uInt32 2012-02-02 10:17:12 +00:00
Lionel Elie Mamane
7bd9ce1fae pgsql: simpler / safer check for system column 2012-02-01 18:56:41 +01:00
Lionel Elie Mamane
0adf5eed03 pgsql getColumns: order by columns, not by their concatenation... 2012-02-01 18:41:14 +01:00
Lionel Elie Mamane
77646473e3 pgsql: implement getColumnPrivileges, generate statement only once 2012-02-01 18:41:13 +01:00
Lionel Elie Mamane
76c34665da postgres getColumns: skip dropped columns, make ORDINAL_POSITION consecutive 2012-02-01 18:41:13 +01:00
Lionel Elie Mamane
8c922d8327 fdo#45254 getTablePrivileges: rely on information_schema
This avoids the use of aclexplode(), which is only SQL-available in PostgreSQL 9.0 and later.
With PostgreSQL versions known to have the information_schema.table_privileges bug of not filling in the default ACL in the absence of an ACL, fill in "owner has all rights", which is the default state of the default ACL.
2012-02-01 18:41:12 +01:00
Fridrich Štrba
e05856c798 Fix build of pgsql connector (std::hash -> boost::hash) 2011-12-07 22:21:48 +01:00
Lionel Elie Mamane
5f3bd5bed3 pgsql-sdbc: Robustify against empty arrays, etc 2011-11-30 16:00:13 +01:00
Michael Meeks
1932529adf postgresql: work around uninitialized warning. 2011-11-29 17:32:29 +00:00
Michael Meeks
4cc501d817 WaE: sizeable postgresql warning cleanup 2011-11-29 17:32:29 +00:00
Lionel Elie Mamane
8d2780d42f psql-sdbc: TODO note 2011-11-24 19:40:49 +01:00
Lionel Elie Mamane
0d0ffe3ff1 pgsql-sdbc: licence all non-Sun & future contributions under LGPLv3+/MPL1.1 2011-11-21 11:31:37 +01:00
Lionel Elie Mamane
412e178a40 pgsql-sdbc: be less prescriptive about indentation style 2011-11-17 21:29:14 +01:00
Lionel Elie Mamane
d526c3f5ea postgresql-sdbc: adapt to removal of implicit (O)ustring->sal_Char* conversion 2011-11-17 21:15:31 +01:00
Lionel Elie Mamane
4ab98d4663 Overhaul DatabaseMetaData::getTablePrivileges 2011-11-17 21:15:30 +01:00
Lionel Elie Mamane
1dbe65b207 Switch to LGPL-only 2011-11-17 21:15:29 +01:00