48c100d730
remove unused typedefs
...
Change-Id: I99c44caabca3d799c783d57cd2c3a1692c899191
Reviewed-on: https://gerrit.libreoffice.org/32911
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk >
2017-01-10 08:52:14 +00:00
4e1d035731
New loplugin:conststringvar: connectivity
...
Change-Id: I2c38bc842ee07d27a5a2ff084e8a608a858f4faa
2017-01-10 08:12:16 +01:00
3a639ccf74
New loplugin:externvar: connectivity
...
Change-Id: I7e62a92ee4b019163de797fd4448170a741879dc
2017-01-09 15:44:10 +01:00
9a30cb2161
hack to silence -Wunused-function
...
Change-Id: I585839c05ca3b0336ffbe2c60a2f58c34b0aae78
2017-01-09 11:21:12 +00:00
b397c4b8cb
bSilent is unused
...
...ever since c25ec0608a167bcf1d891043f02273761c351701 "initial import"
Change-Id: Iccee867aa9722ced2f66d4d8b8911c5e191502c2
2017-01-06 12:34:15 +01:00
c38aa3b734
loplugin:salbool
...
Change-Id: I7dfd48a04e2dff1391d10acb75180711b403af9b
2017-01-06 11:19:42 +01:00
c2b24cd6fb
Use string literals directly
...
Change-Id: Ia4ae5c01ae7eb976a0e9638f8bc8fe7ebab8e2cb
2017-01-06 10:53:34 +01:00
21033d04fd
Clean up a usage of OUStringBuffer
...
Change-Id: I8435865f1a67a3a6d889c1b8a3d30e632ffc61fd
2017-01-05 14:24:28 +01:00
c03d803a72
Replace side-effect--only uses of makeStringAndClear() with setLength(0)
...
Change-Id: Iaf8011f1bd6a10b324653899b7f51458f7d0b68a
2017-01-05 13:52:17 +01:00
9389f7bc1c
Fix loplugin warnings in sqlflex.l
...
(Normally hidden by T_LEXFLAGS containing -L in connectivity/Library_dbtools.mk
suppressing #line directives; some loplugin:literaltoboolconversion warning
would remain in a flex-provided occurrence of ECHO that is apparently not
properly prefixed by #line at least with flex 2.6.0.)
Change-Id: Id5693d6bd9e5b565dd9820e3cbea8e88e7967dd5
2017-01-04 16:26:46 +01:00
30dd4ac3a8
Fix loplugin warnings in sqlbison.y
...
(Normally hidden by T_YACCFLAGS containing -l in connectivity/Library_dbtools.mk
suppressing #line directives; some loplugin:cstylecast would remain in bison-
provided expansions of $1 etc. variables.)
Change-Id: Ic93bea0b2fe0ec5f741c4bc41f25cc72fec0498f
2017-01-04 16:18:13 +01:00
a29bd2dabb
cleanup tailing backslashes
...
Change-Id: Idb4bfc97e7d758c58118742affd9a9345c7a99f2
Reviewed-on: https://gerrit.libreoffice.org/32491
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-12-30 18:48:24 +00:00
1307212b87
Fix some comment typos.
...
Patch by: me
(cherry picked from commit 7ac035b2ddf9275085c30d1048bec7da160158f0)
Change-Id: Ic5fa1abe69fbf5f656e79fcd5e17ea5f84208ae6
2016-12-24 15:37:19 +00:00
dbc3cfb011
tdf#104858: fix typo
...
Thank you to himajin100000@gmail.com for having noticed this.
Change-Id: I81da0d4fc91faf95f4f5257d5834a9fdfd2618f7
Reviewed-on: https://gerrit.libreoffice.org/32378
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
Tested-by: Julien Nabet <serval2412@yahoo.fr >
2016-12-23 10:15:44 +00:00
ef1aee0f80
tdf#70506 implement getColumnLabel function
...
which is responsible for aliasnames defined with the SQL 'AS' keyword.
Change-Id: I6aaf1ba6969e2bd738941e41492338382168bc89
Reviewed-on: https://gerrit.libreoffice.org/32042
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu >
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
Tested-by: Julien Nabet <serval2412@yahoo.fr >
2016-12-20 18:18:03 +00:00
83d2c5180d
Adapt to no-longer explicit OUStringLiteral ctor
...
...from previous commit
Change-Id: I062b7cd212c17e7eb5274476e6859228d0477c7f
Reviewed-on: https://gerrit.libreoffice.org/32098
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
Tested-by: Stephan Bergmann <sbergman@redhat.com >
2016-12-17 16:12:02 +00:00
d15b4e2045
teach sallogareas plugin to catch inconsistencies
...
Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a
Reviewed-on: https://gerrit.libreoffice.org/32004
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-12-15 06:45:14 +00:00
de7922ad57
-Werror,-Wunused-macros
...
Change-Id: Idc81dd30502a1968f2f65386575cac1e029f8c64
2016-12-13 11:06:02 +01:00
cb92af91da
loplugin:sallogareas
...
Change-Id: I25f793d88a87d94925026fc3de97d02086a0c855
2016-12-13 09:17:42 +01:00
c3586b684c
OSL_TRACE->SAL in chart2..oox
...
Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2
Reviewed-on: https://gerrit.libreoffice.org/31907
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-12-13 06:12:00 +00:00
385f624027
Prevent use of ORowSetValue with sal_Bool as TINYINT
...
sal_Bool and sal_uInt8 are typedefs for the same underlying type, so any use of
ORowSetValue with sal_Bool instead of bool, apparently intending to treat the
value as a boolean, actually treated it as a TINYINT. (See e.g. recent
7b0c57b2faec875c790051d233d1e9abaed2a3bc "some compilers don't like implicit
bool-to-ORowSetValue conversion".)
Now that there's no way to create a sal_uInt8 ORowSetValue, getUInt8 and the
m_uInt8 union member can probably go away, too.
Change-Id: Ia27554f76e7e9edce6410284b578064573e54fd3
Reviewed-on: https://gerrit.libreoffice.org/31909
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
2016-12-12 18:02:57 +00:00
7b0c57b2fa
some compilers don't like implicit bool-to-ORowSetValue conversion
...
Change-Id: Ic4463db8aeca6ae9a86f7b890f95eb73724c6a1b
2016-12-12 07:49:46 +01:00
1d0f3649ba
tdf#103074 Implement Boolean Type for FB driver
...
Change-Id: Ibed5435e23730dc901155e79152e9becd3e70566
Reviewed-on: https://gerrit.libreoffice.org/31262
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu >
2016-12-11 10:43:22 +00:00
ea61a62323
tdf#104227 query boolean like infos correctly
...
Change-Id: Ic862bb1ce3efa61d6a01fc56fb9e84cf98bb7cd0
Reviewed-on: https://gerrit.libreoffice.org/31355
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu >
Tested-by: Lionel Elie Mamane <lionel@mamane.lu >
2016-12-11 10:40:57 +00:00
0c6c37cb01
cleanup unused includes (related to tdf#88206)
...
cppuhelper/compbase*.hxx and cppuhelper/implbase*.hxx
compbase*.hxx includes implbase*.hxx replace compbase*.hxx if only
implbase*.hxx stuff is used.
Change-Id: I631a20aee411c6a32ffcf470f6e392621755f995
Reviewed-on: https://gerrit.libreoffice.org/31686
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-12-06 18:17:06 +00:00
50151db9f7
convert FSysStyle to o3tl::typed_flags
...
Change-Id: I58a63a0e6f619442f21827064644ecd8ca57b8ff
2016-12-05 12:49:02 +02:00
bfde4866e0
convert DecodeMechanism to scoped enum
...
Change-Id: I5c56634b1bca8e37fa73d02d2428645301b6c547
2016-12-05 12:49:02 +02:00
803215142e
convert INetURLObject::EncodeMechanism to scoped enum
...
Change-Id: I50ea17c7779c7b5cacddf548f1773fd7d6c8bade
2016-12-05 12:49:02 +02:00
8d2f58a992
tdf#104227: fix subtypes DECIMAL/NUMERIC in resultset
...
bt here:
https://bug-attachments.documentfoundation.org/attachment.cgi?id=129298
See also https://bugs.documentfoundation.org/show_bug.cgi?id=104227#c13 for more details
Change-Id: Ied497cfff2f71e67161d541b90fe48bb3e2456b9
Reviewed-on: https://gerrit.libreoffice.org/31593
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Tamás Bunth <btomi96@gmail.com >
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
2016-12-04 18:22:24 +00:00
036603d72f
convert nowParsing_ constants to scoped enum
...
Change-Id: I8df9ca0e9317a4d969f492699be926044415f68c
Reviewed-on: https://gerrit.libreoffice.org/31483
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Julien Nabet <serval2412@yahoo.fr >
2016-12-01 21:51:41 +00:00
7222ffb79c
Rewrite some (trivial) assignments inside if/while conditions: connectivity
...
Change-Id: I67d4bb92db04b5103b98a2855ae6069a054f171b
2016-11-29 17:21:33 +01:00
507f1a34a7
loplugin:unnecessaryoverride (dtors) in connectivity
...
Change-Id: Icba385b3b7f6991f4dab7b2fd57beab5ac184df0
2016-11-28 14:14:35 +01:00
c3da6e3844
KAB loplugin:datamembershadow
...
Change-Id: I1962ab1d131cf714f8bd540b589e793c4389cfb2
2016-11-25 16:27:07 +01:00
e190825b73
coverity#1371267 Missing move assignment operator
...
Change-Id: Iefcfd20ac17f24f4fc3faec72b15de6bfb42eeac
2016-11-24 12:01:57 +00:00
8ceb8b2d14
Related: coverity#1371267 copy ctor broken, nPagePos not copied
...
initially operator= was removed by
commit a0a919d2b541c415ad9b81d2ee91895bf106e9bb
Date: Fri Oct 3 10:39:28 2014 +0200
remove SvRefBase::QueryDelete
and then operator= was restored by
commit faa6455995966e41653204779d055b885b27fc4c
Date: Fri Oct 10 12:02:32 2014 +0200
add copy constructor for ONDXPagePtr class
which I forgot in commit a0a919d2b541c415ad9b81d2ee91895bf106e9bb
"remove SvRefBase::QueryDelete"
but nPagePos was missed
Change-Id: I6497934d4a199f5ea94cf2da840c164910e7a826
2016-11-24 11:51:55 +00:00
f70ae430a0
OPreparedStatement::m_aTypeInfo is unused
...
Change-Id: I89a43b06a9983e2fac374298db2fef17f3671ab5
2016-11-22 17:40:18 +01:00
3ec6de78f6
loplugin:datamembershadow
...
Change-Id: I773bb19ae33709421fde01426716dcf52065402f
2016-11-21 22:15:49 +01:00
8442bda2ca
loplugin:datamembershadow
...
shadowed OCatalog::m_xMetaData can be used here directly
Change-Id: I1041272b98139fda2413442e4621507655ab67ca
2016-11-21 22:14:25 +01:00
3ec084d61e
get table name from resultset simply
...
There is a much simpler way to access table name in ResultSetMetadata
in Firebird sdbc which I didn't notice before.
Change-Id: Ib306c04acf38ec86475d8d1a22a67012fe48539e
Reviewed-on: https://gerrit.libreoffice.org/30931
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu >
Tested-by: Lionel Elie Mamane <lionel@mamane.lu >
2016-11-21 17:10:52 +00:00
a2686cc717
tdf#74172 ensure prepared while setting numeric
...
Change-Id: I727a0af5c3aa1b2e1f6c251b2dcb32feb46041d6
Reviewed-on: https://gerrit.libreoffice.org/30933
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu >
2016-11-21 16:54:25 +00:00
e2f08f9def
connectivity, sc: add missing #include <osl/endian.h>
...
These files use the macro OSL_BIGENDIAN but did not include the header
that defines it.
Found via:
git grep -l OSL_.*ENDIAN | grep -v -E '\.h(xx)?$' | while read f; do case $f in *cxx) grep -L endian\\.h workdir/Dep/CxxObject/${f%.cxx}.d ;; *) grep -L endian\\.h workdir/Dep/CObject/${f%.c}.d ;; esac ; done
Change-Id: Iaf589a8235dbc8062840d2716ab843e64b5cb7a2
2016-11-21 12:47:51 +01:00
d015317f36
loplugin:datamembershadow
...
shadowed OCatalog::m_xMetaData can be used here directly
Change-Id: I5d4436e1aa6f8f74ef6f9af816625044492cbf58
2016-11-21 09:34:40 +01:00
b495eb4dba
loplugin:datamembershadow
...
Change-Id: I8a737a2f22c7be9630a1f7562b4309e687bb85f9
Reviewed-on: https://gerrit.libreoffice.org/30948
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-11-18 12:11:33 +00:00
97e61ba58c
sync ONDXPagePtr impl with current SvRef impl
...
Change-Id: I85e62a8c634a681e2e53745e3bed52731e8740e0
2016-11-18 11:49:15 +00:00
c5c8790122
this is copied from SvRefBase, so copy the clang opt fix here too
...
Change-Id: Ia3a2f086d66b5e15ddd4e7dcc600271d19e5d052
2016-11-18 11:12:50 +00:00
0a840edcc1
includes should be at the top of the file
...
not randomly scattered through the code
found with something like:
git ls-files *.cpp | xargs grep -Pzl "(?s){.*#include"
Change-Id: I9c242fa4ef99e8677f2800d7ec9f16d16e488351
Reviewed-on: https://gerrit.libreoffice.org/30952
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-11-18 09:25:06 +00:00
7cca2c7fb3
new loplugin finalprotected
...
look for final classes, and make sure they don't have protected members
Change-Id: I1fa810659bba02b61a5160dbfd8e24185ec9abf4
Reviewed-on: https://gerrit.libreoffice.org/30895
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-11-16 09:10:16 +00:00
21005d0ded
fix build of kde3 addressbook
...
Change-Id: I109f6ff9ca35792d3337bac2a6612ba12d2272fd
2016-11-15 16:34:51 +00:00
7ab84fab53
fix build
...
after commit 0d051730156f633150fa9e3107fe97cf7be6d8f9
Author: Noel Grandin <noel.grandin@collabora.co.uk >
Date: Tue Nov 15 09:13:33 2016 +0200
loplugin:constantparam
Change-Id: Ia3e761168043e5a8d22793689e9f224a85a6b7ca
2016-11-15 15:41:23 +02:00
0d05173015
loplugin:constantparam
...
Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0
Reviewed-on: https://gerrit.libreoffice.org/30858
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk >
2016-11-15 12:56:26 +00:00