Commit Graph

71 Commits

Author SHA1 Message Date
Stephan Bergmann
89c4edc13f loplugin:nullptr (automatic rewrite)
Change-Id: I2bba104b1bff30910864e45b5b032533099742ff
2015-11-10 10:31:22 +01:00
Noel Grandin
7dc5e8731f com::sun::star->css in dbaccess
Change-Id: I4fbdd3fb7d1e0ad4423148aaaed3a15aebb26d14
2015-08-03 13:38:44 +02:00
Michael Stahl
fb038a0d0d dbaccess: replace boost::function with std::function
Change-Id: I4bea36a9add24f9144c8e222e9ce42c7c9f3678b
2015-07-31 21:54:25 +02:00
Noel Grandin
71b809959b remove unnecessary use of void in function declarations
ie.
    void f(void);
becomes
    void f();

I used the following command to make the changes:

  git grep -lP '\(\s*void\s*\)' -- *.cxx \
    | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'

and ran it for both .cxx and .hxx files.

Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Stephan Bergmann
cc7ae77764 Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I2d1b59cf13c3944b24ad54dc63e20b83a9c8a015
2015-04-01 08:38:29 +02:00
Lionel Elie Mamane
33e94f367a fdo#82151 finish fixup
Fix the UnoApi test, and give ORowSetDataColumn::getFastPropertyValue the reasonable behaviour.

Change-Id: I68cc1221b6772e3036c78b8234b1d8b248d4d673
2014-08-11 16:28:42 +02:00
Michael Stahl
f122722402 warning C4101: 'e': unreferenced local variable
Change-Id: Ieaea27df421c939da895723485770830ac15c873
2014-08-08 18:00:43 +02:00
Lionel Elie Mamane
5be4407d07 fdo#82151 fixup
The dbaccess unoapi test calls
css::sdb::XSingleSelectQueryComposer::appendFilterByColumn
in a state where there is no current row, and thus no column value.
This does not make sense, but let's not break the build while I
figure out how to fix the unoapi test.

Change-Id: If813a1544ec9a5dac6f87197982d10576c91cd8c
2014-08-07 11:34:24 +02:00
Stephan Bergmann
90b09303ef Tunnel SQLException through getPropertyValue
Regression introduced with 03a2b4a80c "fdo#82151
when constructing column object, replace m_aCurrentRow by a function," where
the other call to m_pGetValue in ORowSetDataColumn::fireValueChange appears OK,
as ORowSetBase::firePropertyChange already wraps the fireValueChange calls in a
try--catch.

Change-Id: I527cc35ae120cf083f7c69a9a23526839a2bbddb
2014-08-07 09:40:02 +02:00
Lionel Elie Mamane
03a2b4a80c fdo#82151 when constructing column object, replace m_aCurrentRow by a function
The passed m_aCurrentRow becomes out-of-date as soon as the current row changes.
This also hides an implementation detail of ORowSet to ORowSet(Data)Column.

Change-Id: Ib9188743e5dd6dec240e9f5fd3fd9655c6761abc
Reviewed-on: https://gerrit.libreoffice.org/10792
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-08-06 13:49:32 +00:00
Noel Grandin
fee4efcb54 dbaccess: sal_Bool->bool
Change-Id: Ieb52470f9638b74898954db3890aaf2cf202290a
2014-04-17 11:17:21 +02:00
Stephan Bergmann
2f3be98732 dbaccess: simplify deprecated XTypeProvider.getImplementationId
Required some clean-up of getImplementationId vs. getUnoTunnelImplementationId
confusion.

Change-Id: I645dd80d24efe7ed5224b220911eed8ad880b7c0
2014-03-10 17:39:54 +01:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Arnaud Versini
5b2ba8ed5d DBACCESS : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.

Conflicts:
	dbaccess/source/ui/dlg/tablespage.cxx

Change-Id: I25ea9174a042050efdb371246417ee7f2edae997
Reviewed-on: https://gerrit.libreoffice.org/7532
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21 16:20:10 +00:00
Jelle van der Waa
2ec606730b fdo#62475 removed pointless comments
Conflicts:
	dbaccess/source/filter/xml/xmlfilter.cxx
	dbaccess/source/ui/dlg/ConnectionPage.cxx
	dbaccess/source/ui/dlg/detailpages.cxx
	dbaccess/source/ui/dlg/odbcconfig.cxx
	dbaccess/source/ui/querydesign/querycontroller.cxx

Change-Id: I3a05649efa3a43dd8d8fb069fc1bce14ca0a6338
Reviewed-on: https://gerrit.libreoffice.org/5484
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-27 16:11:09 +00: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
Michael Meeks
577cf8ff67 re-base on ALv2 code. 2012-06-14 17:41:07 +01:00
Olivier Hallot
545921f914 Fix for fdo43460 Part XII getLength() to isEmpty()
Part XII
Module
dbaccess
2011-12-21 09:52:48 +01:00
Norbert Thiebaud
281b13ce89 remove include of pch header in dbaccess 2011-11-27 13:04:48 -06:00
David Tardon
15c80d4db0 make this more readable 2011-06-23 06:11:02 +02:00
David Tardon
160f531283 fix debug build breakage 2011-01-10 12:39:01 +01:00
Caolán McNamara
4492de10e0 fix this up but keep cppcheck silent 2011-01-07 11:31:35 +00:00
Guillaume Poussel
865bef974d cppcheck cleanliness 2011-01-07 11:06:02 +00:00
Takeshi Abe
98ab2fdde6 remove dead codes and undesired comments 2010-11-23 07:40:17 +01:00
Norbert Thiebaud
25ecc1fd1a merge vosremoval-reference.diff 2010-10-25 17:54:56 -05:00
Gil Forcada
1aa44a7761 Removed comments, trailing spaces and death code 2010-10-13 12:18:30 +02:00
Sebastian Spaeth
6450d1a7f5 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-13 10:57:12 +02:00
Petr Mladek
dc8c15ae62 remove include guards using fixguard.py 2010-10-05 17:58:28 +02:00
Frank Schoenheit [fs]
b6693080a1 dba33f: merge with m76-branch 2010-04-16 13:55:24 +02:00
Ocke Janssen [oj]
a4bc14c0d6 Automated merge with http://hg.services.openoffice.org/cws/dba33f 2010-02-15 10:24:00 +01:00
Jens-Heiner Rechtien
1708f6091b changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Ocke Janssen [oj]
1baf7abd1c dba33f: #i53377# make property IsReadOnly bound 2010-02-08 14:09:08 +01:00
Ocke Janssen [oj]
79ea41cc2a dba33f: memeber ini 2010-01-22 15:03:40 +01:00
Ocke Janssen [oj]
cea09e968c dba33f: #i108548# handle Label property from parse column and rowsetcolumn 2010-01-22 10:31:43 +01:00
Frank Schönheit [fs]
70d7ac8e49 more column class refactoring in preparation of #i67202#. Removed unneeded classes, consolidated the property handling of the various Column classes 2009-11-02 14:41:02 +01:00
Jens-Heiner Rechtien
ae503a17e4 CWS-TOOLING: integrate CWS sb102
2008-12-11 16:18:12 +0100 sb  r265332 : #i95065# cleanup, to make Windows linking work
2008-12-11 16:16:03 +0100 sb  r265331 : #i95065# missing SAL_DLLPUBLIC_EXPORT
2008-12-09 17:40:28 +0100 sb  r265122 : #i94469# move CJK specific configuration data to brand layer
2008-12-09 16:09:08 +0100 sb  r265112 : #i96959# use PTHREAD_MUTEX_RECURSIVE on all platforms
2008-12-09 15:54:31 +0100 sb  r265110 : #i95065# do not derive apphelper::LifeTimeGuard from osl::ResettableMutexGuard to avoid problems with VISIBILITY_HIDDEN=TRUE on MSC
2008-12-09 15:40:51 +0100 sb  r265104 : #i95065# add VISIBILITY_HIDDEN=TRUE to connectivity/source/drivers/mozab
2008-12-09 15:36:21 +0100 sb  r265102 : #i95501# updated SDK_HOME
2008-12-09 15:31:46 +0100 sb  r265099 : typo (temppath vs. tmppath)
2008-12-08 11:48:08 +0100 sb  r264979 : #i95065# removed spurious ExplicitCategoriesProvider.obj (ExplicitCategoriesProvider.cxx is not in this directory)
2008-12-07 19:41:07 +0100 sb  r264960 : #i96994# erroneously doubled backslash caused visibility feature to be disabled for all GCC versions on Mac OS X
2008-12-06 23:54:49 +0100 sb  r264948 : changes from trunk that CWS-TOOLING's rebase to DEV300:m37 (r264891) had missed, as files had been moved around on this CWS
2008-12-05 20:29:23 +0100 sb  r264919 : #i85508# versions of flex apparently differ in whether input() resp. yyinput() returns zero or EOF upon end of file
2008-12-05 15:37:23 +0100 sb  r264908 : #i95315# removed obsolete jut
2008-12-05 15:34:59 +0100 sb  r264907 : #i95531# removed empty obsolete directories
2008-12-05 10:09:23 +0100 sb  r264891 : CWS-TOOLING: rebase CWS sb102 to trunk@264807 (milestone: DEV300:m37)
2008-12-04 14:50:20 +0100 sb  r264845 : #i95065# introduced VISIBILITY_HIDDEN makefile flag to reduce duplications; made additional libraries use VISIBILITY_HIDDEN=TRUE to avoid warnings with recent GCC 4 versions (had to split certain code directories to make changes that would otherwise erroneously affect multiple libraries built in the same makefile); changed connectivity::ORefVector to no longer derive from std::vector, as that caused problems with the MSC implementation of VISIBILITY_HIDDEN=TRUE; replaced uses of JNIEXPORT with SAL_DLLPUBLIC_EXPORT, as the former does not expand to visibility attributes on some platforms where the latter does
2008-12-03 11:29:38 +0100 sb  r264759 : #i94583# remove unnecessary (and wrong) assertion check for rtl_getAppCommandArg return value (which is guaranteed to return osl_Process_E_None or not return at all)
2008-12-02 17:18:31 +0100 sb  r264724 : #i96809# silenced GCC 4.3.2 warning
2008-12-02 13:29:34 +0100 sb  r264695 : #i96797# make get_tmp_dir fail less often
2008-11-28 17:19:24 +0100 sb  r264566 : #i95691# inadvertently missing from -c 264564
2008-11-28 17:07:50 +0100 sb  r264564 : #i95691# only structs of exactly 1, 2, 4, or 8 bytes are returned through registers
2008-11-25 13:28:08 +0100 sb  r264291 : #i96427# support for SAL_EXCEPTION_DLLPUBLIC_EXPORT (patch by np)
2008-11-21 14:45:22 +0100 sb  r264140 : #i95428# added SAL_EXCEPTION_DLLPUBLIC_EXPORT and SAL_EXCEPTION_DLLPRIVATE
2008-11-19 13:19:37 +0100 sb  r263984 : #i95525# removed erroneous application/octet-stream svn:mime-type properties
2008-12-30 13:32:01 +00:00
Rüdiger Timm
85268e54a5 INTEGRATION: CWS changefileheader (1.34.258); FILE MERGED
2008/03/31 13:26:42 rt 1.34.258.1: #i87441# Change license header to LPGL v3.
2008-04-10 11:22:30 +00:00
Oliver Bolte
b0ce80edb0 INTEGRATION: CWS pchfix02 (1.33.52); FILE MERGED
2006/09/01 17:24:03 kaib 1.33.52.1: #i68856# Added header markers and pch files
2006-09-17 05:30:50 +00:00
Jens-Heiner Rechtien
aad6ee24f3 INTEGRATION: CWS warnings01 (1.30.28); FILE MERGED
2006/04/07 20:44:44 sb 1.30.28.2: RESYNC: (1.30-1.32); FILE MERGED
2006/03/24 15:35:44 fs 1.30.28.1: #i57457# warning-free code (unxlngi6/.pro + unxsoli4.pro)
2006-06-20 01:34:01 +00:00
Rüdiger Timm
30ead1d8c9 INTEGRATION: CWS dba202f (1.30.14); FILE MERGED
2006/01/30 10:07:26 fs 1.30.14.3: #i10000#
2006/01/30 09:13:53 oj 1.30.14.2: #i61052# fix for updates, deletes and moves
2006/01/20 14:51:41 fs 1.30.14.1: copying the changes from stlusagefix01 herein, to be able to use this CWS in a non-product version
2006-02-06 15:53:31 +00:00
Jens-Heiner Rechtien
bdf6697dfb INTEGRATION: CWS stlusagefix01 (1.30.16); FILE MERGED
2006/01/16 13:47:15 oj 1.30.16.1: #i60480# fix stl usage
2006-01-25 12:42:21 +00:00
Oliver Bolte
be5f958315 INTEGRATION: CWS kaddrbook (1.29.56); FILE MERGED
2005/12/05 12:15:23 fs 1.29.56.1: #i58879# respect XDatabaseMetaData::getVersionColumns, and translate it into css.sdbcx.Column.IsRowVersion
2005-12-19 16:13:32 +00:00
Rüdiger Timm
735a7a7e8d INTEGRATION: CWS ooo19126 (1.28.98); FILE MERGED
2005/09/05 17:32:00 rt 1.28.98.1: #i54170# Change license header: remove SISSL
2005-09-08 08:56:23 +00:00
Oliver Bolte
f5d6020fcf INTEGRATION: CWS dba25 (1.26.102); FILE MERGED
2005/03/14 13:20:55 fs 1.26.102.2: RESYNC: (1.26-1.27); FILE MERGED
2005/03/02 09:45:33 oj 1.26.102.1: #i43849# fix events when moving
2005-03-18 09:04:08 +00:00
Vladimir Glazounov
811830730f INTEGRATION: CWS dba24 (1.26.80); FILE MERGED
2005/02/09 08:12:57 oj 1.26.80.1: #i26950# remove the need for XNamed
2005-03-10 15:29:10 +00:00
Jens-Heiner Rechtien
4e1aaf823a INTEGRATION: CWS insight01 (1.25.122); FILE MERGED
2003/12/17 09:18:53 oj 1.25.122.2: #111075# ongoing work
2003/11/05 11:36:11 oj 1.25.122.1: #111075# ongoing work
2004-08-02 13:59:11 +00:00
Ocke Janssen
48dbb2ad9d #95359# insert Attrib MayBeVoid 2001-12-03 12:36:06 +00:00
Ocke Janssen
ba35b91681 #93489# impl new property for columnsettings 2001-10-19 11:52:27 +00:00
Ocke Janssen
251039c87c #92883# fix the descriptor handling 2001-10-12 11:02:56 +00:00
Ocke Janssen
1581a0d3ca #92232# fixes for BIGINT type and new property HELPTEXT 2001-09-20 11:59:25 +00:00