6674 Commits

Author SHA1 Message Date
Stephan Bergmann
0c55303581 Get rid of DECLARE_STL_STDKEY_SET
Change-Id: I4817694d183d525fa5a29eb9693a20d491549e5d
2013-12-05 18:36:21 +01:00
Noel Grandin
aa4a39c9d7 remove unused #define SQL_COLUMN_NOTFOUND
Change-Id: Ic8914484c23c586036280bdf12a3fef3128d03ff
2013-12-04 08:55:34 +02:00
Lionel Elie Mamane
56ad826194 flat text DB: fix move by bookmark
To test whether the range [a,b( is *before* e,
compare e to b, not to a.

This makes a difference when a==b, which happens for row 0 (header)
when there is no header.

Change-Id: I629b71936f82a468febe0360909264dd80304437
2013-11-30 12:03:20 +01:00
Lionel Elie Mamane
3a89da0b66 debug mode is OSL_DEBUG_LEVEL > 0, not > 1
Change-Id: I39465b1b22a537de95db9f65b04ecf4bce667d0c
2013-11-30 12:03:19 +01:00
Lionel Elie Mamane
c0285abc4b factorise code
Change-Id: Ifd1829843886b8c58669fd4ccf04bc35bf4a0e10
2013-11-30 12:03:19 +01:00
Lionel Elie Mamane
7a64727f79 fdo#72148 if expecting table at begin, explicitly set it so
Change-Id: Ic876603e5860b987280b73726fd79a071a9c833c
2013-11-30 12:03:18 +01:00
Stephan Bergmann
2fde764591 sqlbison.y string clean-up
Change-Id: I1ab32794a10f78f305de8057af5885d7719f87a3
2013-11-26 23:15:36 +01:00
Noel Grandin
73342dbb82 remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.

Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22 08:07:19 +02:00
Noel Grandin
6eac9deadd remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
    if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
    if (aStr == "rem")
which compiles down to the same code.

Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
2013-11-21 13:29:29 +02:00
Noel Grandin
d454834895 Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295.

I mistakenly converted OUString::equalsL calls to OUString::startsWith
calls.
2013-11-20 16:38:28 +02:00
Thomas Arnhold
f01580ce9c Windows: Require at least Windows XP SP2
* Windows XP SP2 is 0x0502, see
  http://msdn.microsoft.com/en-us/library/aa383745.aspx
* If a module changes the Windows SDK version setting,
  this is done module wide now. So the overall behavior
  is as before. This seems to be the best compromise for
  now.
* We need at least SP2 because of the bluetooth stuff
  used in sd/source/ui/remotecontrol.
* Now, we require at least Internet Explorer 7.0. IE6
  has been outdated for a long time.
* Leave StdAfx.h file definitions, as those are Microsoft
  project specific precompiled header files.
* All local definitions of WINVER are removed, because
  the global WINVER setting makes them obsolete now.

To the relation of the three macros:

Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION
automatically to the same value as _WIN32_WINNT.

WINVER and NTDDI_VERSION can be set idenpendently each
for itself.

Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb
Reviewed-on: https://gerrit.libreoffice.org/6496
Reviewed-by: Thorsten Behrens <thb@documentfoundation.org>
Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20 07:15:16 -06: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
acebbee971 remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like:
    if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
    if (aByteStr.startsWith("rem"))

Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20 13:56:08 +02:00
Noel Grandin
5112f6a6c6 remove RTL_CONSTASCII_STRINGPARAM in OString constructor
Convert code like:
    OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX"));
to:
    OString aKeyName("NDX");
which compiles down to the same code

Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20 13:56:07 +02:00
Noel Grandin
1730df0127 remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like:
   aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") );
to:
   aOStringBuf.append( " is missing )" );
which compiles down to the same code.

Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20 10:07:32 +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
3af99e4d59 convert equalsAsciiL calls to startsWith calls
Convert code like:
    aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) )
to
    aStr.startsWith( "ActiveConnection" )
which compiles down to the same machine code.

Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-20 10:07:31 +02:00
Noel Grandin
363cc39717 convert equalsAsciiL calls to startWith calls where possible
Simplify code like:
    aStr.equalsAsciiL( "%", 1 )
to
    aStr.startsWith( "%" )

Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19 12:49:29 +02:00
Noel Grandin
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
Noel Grandin
2c35fff7ec remove most use of RTL_CONSTASCII_USTRINGPARAM macro
This is largely unnecessary when working with OUString

Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
Julien Nabet
5bacd0d1c4 Fix some wrong copy paste
Change-Id: I3ad6f62393cb22b350d6b50086963ebc7d2a8f5e
2013-11-18 22:17:28 +01:00
Julien Nabet
30e5bdcbf5 m_uInt8 not m_nInt8
Change-Id: I54524b6c7c19202bee049b61edc3f8e0a1e4fde0
2013-11-17 22:20:14 +01:00
Andras Timar
1ba111343e bugs.freedesktop.org -> bugs.libreoffice.org
Change-Id: I56c1190c93333636981acf2dd271515170a8a904
2013-11-17 08:33:01 +01:00
Stephan Bergmann
ab5d1fbfb4 SAL_WARN_UNUSED com::sun::uno::Any
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14 21:02:40 +01:00
Michael Stahl
96917c8068 connectivity: remove #pragma GCC system_header in mozabdrv
... which can only be built with MSVC currently anyway.

Change-Id: I806be27ec18e4f04e000f0b5d9ea613c3199855c
2013-11-14 16:03:21 +01:00
Andrzej J.R. Hunt
acef4b2687 fdo#70144 Mark database document as modified when data inserted in firebird.
This only applies to embedded databases where any changes to the database
only affect the temporary extracted db which still has to be stored into
the .odb.

This only fixes the status for modification/insertion/deletion of data
in existing tables. Insertion of new tables still does not result
in the modified state being set.

Change-Id: I553f67127672f2cf49b98ddcdf7d25f22bef5074
Reviewed-on: https://gerrit.libreoffice.org/6621
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-14 11:50:29 +00:00
Stephan Bergmann
2b9d8d6b2f -Werror,-Wunused-member-function
Change-Id: Iea28e36ca398018acbae44517c378bb4b188a0b0
2013-11-14 10:15:02 +01:00
Stephan Bergmann
a1aea9418f -Werror,-Wunused-member-function
Change-Id: I7f59e3ac50a055486cd1f1dd2d887d38a3ad92c7
2013-11-14 10:15:01 +01:00
Noel Grandin
d366c9b20e remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-14 08:17:32 +02:00
Andrzej J.R. Hunt
a3eece5a88 Pass Document directly to Driver for embedded databases.
Change-Id: I346a8ef07c5d695b3aa879f5c25cc4af97e25b99
Reviewed-on: https://gerrit.libreoffice.org/6627
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-13 14:38:40 +00:00
Caolán McNamara
09a1a81dac remove archaic drop comments referring to STRING_NOTFOUND
Change-Id: Ieb31ca4d3a4dbeae2bc66f9c94b243425805fdb0
2013-11-13 13:50:38 +00:00
Caolán McNamara
a556802b52 xub_StrLen->sal_Int32
Change-Id: I4ee33d8c5c564df62ad65cbcaf0d0cb253129fc8
2013-11-13 13:50:37 +00:00
Noel Grandin
4283bc1836 convert STRING_NOTFOUND -> NODE_NOTFOUND in connectivity
The code was interchangably using the two anyway.

Change-Id: I4f3fe8f1d699a9725bbcce0138a9d978a1eff28a
2013-11-11 13:41:43 +02:00
Noel Grandin
fcd1637d51 convert OUString compareToAscii == 0 to equalsAscii
Convert code like
   aStr.compareToAscii("XXX") == 0
to
  aStr.equalsAscii("XXX")
which is both easier to read and faster.

Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11 12:58:13 +02:00
Noel Grandin
ef90021abe convert OUString !compareToAscii to equalsAscii
Convert code like
   if( ! aStr.compareToAscii("XXX") )
to
   if( aStr.equalsAscii("XXX") )
which is both clearer and faster.

Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11 12:58:12 +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
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Noel Grandin
1bdb2b6f06 remove unnecessary use of OUString constructor in CONNECTIVITY module
Change-Id: Ie32d03920d996db2793ead9940fc90668cde03dd
2013-11-11 11:21:25 +02:00
Michael Stahl
f35b3fea46 clean up #ifdef ICC code
According to the dmake documentation, ICC refers to Visual Age C++ for
OS/2, which is not a supported compiler (or platform).

Change-Id: Ic9e23bc7c44de110a3a312bd007beda3b660927d
2013-11-10 00:03:22 +01:00
Lionel Elie Mamane
79bd39ac61 fdo#65108 inter-module includes <>
Change-Id: Ie8ca0b1aa7b56ea1d62c9eed798c56ca78464c44
2013-11-09 18:39:56 +01:00
Lionel Elie Mamane
7b9a9a4986 make firebird-sdbc an experimental feature
Change-Id: I0f2453e23d18597cfe1ad2a4cd4902b15f0a8f7d
2013-11-09 18:39:18 +01:00
Tor Lillqvist
5d87a7f542 WaE: unused variable 'sSqlStatement' [loplugin]
Change-Id: I30fe491d8257affb994083ae312d9663ef7a28e9
2013-11-07 21:12:53 +02:00
Lionel Elie Mamane
e58c7886fe typo in comment
Change-Id: Iea5084bd1c5765197e5dcf379637a780e52f42bd
2013-11-07 19:17:25 +01:00
Lionel Elie Mamane
aaee12a8a8 fdo#65108 inter-module includes <>
Change-Id: Ie7e08f25741772f657a71369483917d989a05537
2013-11-07 19:17:24 +01:00
Lionel Elie Mamane
c2ad6017e6 firebird-sdbc: replace named parameter by unnamed
Change-Id: Iad6023d9d16b10001bb8493dea483e655fc8519c
2013-11-07 19:17:22 +01:00
Herbert Dürr
bb16855eb0 #i123575# RmMoz 7/9: fix mismatching header guard comment
(cherry picked from commit ce2260c549c1cafadd1182e4e7155b18ab44e771)
2013-11-06 11:49:21 +00:00
Noel Grandin
296329a926 convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32

Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
2013-11-06 08:51:22 +02:00
José Guilherme Vanz
2bb5f4773c fdo#54938: Convert to use cppu::supportsService
Change-Id: I5b8e08bad3d83b6df23127377c0700fcd27ff084
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-04 12:24:18 +01:00
Andrzej J.R. Hunt
45053900a4 Fix bogus OUString constructor fixes.
aeb41c9b9b7559c6d87bf92807acdc0df9e104cc
(remove redundant calls to OUString constructor)
introduced:
error: variable 'sComposedName' is uninitialized when used within its own initialization

Change-Id: I846337da43625d1cdbd33f0705499daa0c419894
2013-11-04 08:40:00 +00:00
Noel Grandin
5285beeaa4 remove redundant calls to OUString constructor in if expression
Convert code like:
  if( aStr == OUString("xxxx") )
to this:
  if( aStr == "xxxx" )

Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-11-04 10:11:08 +02:00