# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- #************************************************************************* # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # #************************************************************************* $(eval $(call gb_CppunitTest_CppunitTest,sc_editfieldobj_header)) $(eval $(call gb_CppunitTest_use_external,sc_editfieldobj_header,boost_headers)) $(eval $(call gb_CppunitTest_add_exception_objects,sc_editfieldobj_header, \ sc/qa/extras/sceditfieldobj-header \ )) $(eval $(call gb_CppunitTest_use_libraries,sc_editfieldobj_header, \ basegfx \ comphelper \ cppu \ cppuhelper \ drawinglayer \ editeng \ for \ forui \ i18nlangtag \ msfilter \ oox \ sal \ salhelper \ sax \ sb \ sc \ sfx \ sot \ subsequenttest \ svl \ svt \ svx \ svxcore \ test \ tk \ tl \ ucbhelper \ unotest \ utl \ vbahelper \ vcl \ xo \ $(gb_UWINAPI) \ )) $(eval $(call gb_CppunitTest_set_include,sc_editfieldobj_header,\ -I$(SRCDIR)/sc/source/ui/inc \ -I$(SRCDIR)/sc/inc \ $$(INCLUDE) \ )) $(eval $(call gb_CppunitTest_use_sdk_api,sc_editfieldobj_header)) $(eval $(call gb_CppunitTest_use_ure,sc_editfieldobj_header)) $(eval $(call gb_CppunitTest_use_vcl,sc_editfieldobj_header)) $(eval $(call gb_CppunitTest_use_components,sc_editfieldobj_header,\ basic/util/sb \ comphelper/util/comphelp \ configmgr/source/configmgr \ dbaccess/util/dba \ filter/source/config/cache/filterconfig1 \ forms/util/frm \ framework/util/fwk \ i18npool/util/i18npool \ oox/util/oox \ package/source/xstor/xstor \ package/util/package2 \ sax/source/expatwrap/expwrap \ scripting/source/basprov/basprov \ scripting/util/scriptframe \ sc/util/sc \ sc/util/scd \ sc/util/scfilt \ $(call gb_Helper_optional,SCRIPTING, \ sc/util/vbaobj) \ sfx2/util/sfx \ sot/util/sot \ svl/source/fsstor/fsstorage \ toolkit/util/tk \ ucb/source/core/ucb1 \ ucb/source/ucp/file/ucpfile1 \ ucb/source/ucp/tdoc/ucptdoc1 \ unotools/util/utl \ unoxml/source/rdf/unordf \ unoxml/source/service/unoxml \ svtools/util/svt \ )) $(eval $(call gb_CppunitTest_use_configuration,sc_editfieldobj_header)) # vim: set noet sw=4 ts=4: distro/collabora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-11 08:40:36 +0200
committerNoel Grandin <noel@peralex.com>2016-01-11 10:49:24 +0200
commitf7c23897a354d9856ecaa5f7252520a350229bfa (patch)
tree1e8a006460cdd49683d410eb6352211d38b6f9f7 /dbaccess
parent889fc93087ae1b57348803014c0a6090fd48c06f (diff)
loplugin:unusedmethods unused return value in dbaccess
Change-Id: Ia7ec0209a635f8482b6ccbaa7ba48a8c6da79090
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSet.cxx6
-rw-r--r--dbaccess/source/core/api/RowSet.hxx9
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx8
-rw-r--r--dbaccess/source/core/api/RowSetCache.hxx2
-rw-r--r--dbaccess/source/core/api/RowSetCacheIterator.cxx32
-rw-r--r--dbaccess/source/core/api/RowSetCacheIterator.hxx4
-rw-r--r--dbaccess/source/core/api/RowSetRow.hxx23
-rw-r--r--dbaccess/source/core/dataaccess/commanddefinition.hxx1
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.cxx12
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.hxx2
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationpages.cxx5
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationpages.hxx3
-rw-r--r--dbaccess/source/ext/macromigration/migrationengine.cxx14
-rw-r--r--dbaccess/source/inc/dsntypes.hxx4
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx5
-rw-r--r--dbaccess/source/ui/control/RelationControl.cxx4
-rw-r--r--dbaccess/source/ui/dlg/UserAdminDlg.cxx4
-rw-r--r--dbaccess/source/ui/dlg/adminpages.hxx12
-rw-r--r--dbaccess/source/ui/dlg/advancedsettings.cxx4
-rw-r--r--dbaccess/source/ui/dlg/dbadmin.cxx4
-rw-r--r--dbaccess/source/ui/dlg/dbwiz.cxx3
-rw-r--r--dbaccess/source/ui/dlg/dbwizsetup.cxx3
-rw-r--r--dbaccess/source/ui/inc/ConnectionLineData.hxx2
-rw-r--r--dbaccess/source/ui/inc/IItemSetHelper.hxx2
-rw-r--r--dbaccess/source/ui/inc/JoinTableView.hxx3
-rw-r--r--dbaccess/source/ui/inc/RelationControl.hxx2
-rw-r--r--dbaccess/source/ui/inc/TableConnection.hxx4
-rw-r--r--dbaccess/source/ui/inc/TableConnectionData.hxx2
-rw-r--r--dbaccess/source/ui/inc/TableFieldDescription.hxx1
-rw-r--r--dbaccess/source/ui/inc/TypeInfo.hxx2
-rw-r--r--dbaccess/source/ui/inc/UserAdminDlg.hxx2
-rw-r--r--dbaccess/source/ui/inc/advancedsettingsdlg.hxx2
-rw-r--r--dbaccess/source/ui/inc/charsets.hxx4
-rw-r--r--dbaccess/source/ui/inc/dbadmin.hxx2
-rw-r--r--dbaccess/source/ui/inc/dbwiz.hxx2
-rw-r--r--dbaccess/source/ui/inc/dbwizsetup.hxx2
-rw-r--r--dbaccess/source/ui/inc/querycontainerwindow.hxx2
-rw-r--r--dbaccess/source/ui/inc/querycontroller.hxx2
-rw-r--r--dbaccess/source/ui/inc/sbagrid.hxx2
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionLineData.cxx3
-rw-r--r--dbaccess/source/ui/querydesign/JoinTableView.cxx6
-rw-r--r--dbaccess/source/ui/querydesign/TableConnection.cxx7
-rw-r--r--dbaccess/source/ui/querydesign/TableConnectionData.cxx11
-rw-r--r--dbaccess/source/ui/querydesign/TableFieldDescription.cxx15
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx3
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx12
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.hxx4
47 files changed, 71 insertions, 192 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index 9487dfe36b7c..58e450859e7b 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -2269,12 +2269,12 @@ void ORowSet::impl_resetTables_nothrow()
DELETEZ( m_pTables );
}
-bool ORowSet::impl_initComposer_throw( OUString& _out_rCommandToExecute )
+void ORowSet::impl_initComposer_throw( OUString& _out_rCommandToExecute )
{
bool bUseEscapeProcessing = impl_buildActiveCommand_throw( );
_out_rCommandToExecute = m_aActiveCommand;
if ( !bUseEscapeProcessing )
- return bUseEscapeProcessing;
+ return;
if (m_bCommandFacetsDirty)
m_xComposer = nullptr;
@@ -2319,8 +2319,6 @@ bool ORowSet::impl_initComposer_throw( OUString& _out_rCommandToExecute )
_out_rCommandToExecute = m_xComposer->getQueryWithSubstitution();
m_bCommandFacetsDirty = false;
-
- return bUseEscapeProcessing;
}
bool ORowSet::impl_buildActiveCommand_throw()
diff --git a/dbaccess/source/core/api/RowSet.hxx b/dbaccess/source/core/api/RowSet.hxx
index f8d52df8e839..75822a4b0732 100644
--- a/dbaccess/source/core/api/RowSet.hxx
+++ b/dbaccess/source/core/api/RowSet.hxx
@@ -156,13 +156,6 @@ namespace dbaccess
The command which is to be executed, according to the current settings -
it is built from our active command plus our current filter/order criterions.
- @return
- whether we should use escape processing before executing the actual command. This is determined
- from our own EscapeProcessing property, and possibly overruled by the respective property
- of a query we're based on.
- Effectively, this value determines whether or not we actually have an composer (m_xComposer)
- and dependent information (such as the parameters container).
-
@precond
m_xActiveConnection points to a valid SDB-level connection
@@ -172,7 +165,7 @@ namespace dbaccess
@throws css::uno::RuntimeException
if any of the components involved throws a css::uno::RuntimeException
*/
- bool impl_initComposer_throw( OUString& _out_rCommandToExecute );
+ void impl_initComposer_throw( OUString& _out_rCommandToExecute );
/** returns the table container of our active connection
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 1ba973ce8b6c..f1b81a11b577 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -834,7 +834,7 @@ bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos, sal_Int32 &_nNewEndPos)
// If m_nPosition is out of the current window,
// move it and update m_nStartPos and m_nEndPos
// Caller is responsible for updating m_aMatrixIter
-bool ORowSetCache::moveWindow()
+void ORowSetCache::moveWindow()
{
OSL_ENSURE(m_nStartPos >= 0,"ORowSetCache::moveWindow: m_nStartPos is less than 0!");
OSL_ENSURE(m_nEndPos >= m_nStartPos,"ORowSetCache::moveWindow: m_nStartPos not smaller than m_nEndPos");
@@ -870,7 +870,7 @@ bool ORowSetCache::moveWindow()
m_bRowCountFinal = true;
}
}
- return true;
+ return;
}
bool bRet = true;
@@ -958,7 +958,7 @@ bool ORowSetCache::moveWindow()
else
{ // normally this should never happen
OSL_FAIL("What the hell is happen here!");
- return false;
+ return;
}
}
else
@@ -1084,8 +1084,6 @@ bool ORowSetCache::moveWindow()
OSL_ENSURE(m_nStartPos >= 0,"ORowSetCache::moveWindow: m_nStartPos is less than 0!");
OSL_ENSURE(m_nEndPos > m_nStartPos,"ORowSetCache::moveWindow: m_nStartPos not smaller than m_nEndPos");
OSL_ENSURE(m_nEndPos-m_nStartPos <= m_nFetchSize,"ORowSetCache::moveWindow: m_nStartPos and m_nEndPos too far apart");
-
- return bRet;
}
bool ORowSetCache::first( )
diff --git a/dbaccess/source/core/api/RowSetCache.hxx b/dbaccess/source/core/api/RowSetCache.hxx
index a8eeaa009617..a41aaf7d0f1b 100644
--- a/