summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-17 15:21:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-18 08:33:50 +0000
commitdd351c8524b270d1fd0f61998e10dba0ccd624b6 (patch)
tree9258389b18dfa876636cf4cc468672f79c95a0a9 /dbaccess/source/ui/inc
parent4f250922ac59142e6e35e5663ffeefcc14052073 (diff)
loplugin:constantparam in dbaccess
Change-Id: Icfe7d3d4630f4b5b3b2491ba56245257bad31bb8 Reviewed-on: https://gerrit.libreoffice.org/23349 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/inc')
-rw-r--r--dbaccess/source/ui/inc/TableCopyHelper.hxx6
-rw-r--r--dbaccess/source/ui/inc/VertSplitView.hxx2
-rw-r--r--dbaccess/source/ui/inc/dbtreelistbox.hxx4
-rw-r--r--dbaccess/source/ui/inc/directsql.hxx2
-rw-r--r--dbaccess/source/ui/inc/dlgattr.hxx2
-rw-r--r--dbaccess/source/ui/inc/unodatbr.hxx5
6 files changed, 7 insertions, 14 deletions
diff --git a/dbaccess/source/ui/inc/TableCopyHelper.hxx b/dbaccess/source/ui/inc/TableCopyHelper.hxx
index 98e0169d543e..1a3c00a47f27 100644
--- a/dbaccess/source/ui/inc/TableCopyHelper.hxx
+++ b/dbaccess/source/ui/inc/TableCopyHelper.hxx
@@ -36,10 +36,8 @@ namespace dbaui
struct TAppSupportedSotFunctor : ::std::unary_function<DataFlavorExVector::value_type,bool>
{
ElementType eEntryType;
- bool bQueryDrop;
- TAppSupportedSotFunctor(const ElementType& _eEntryType,bool _bQueryDrop)
+ TAppSupportedSotFunctor(const ElementType& _eEntryType)
: eEntryType(_eEntryType)
- , bQueryDrop(_bQueryDrop)
{
}
@@ -53,7 +51,7 @@ namespace dbaui
return (E_TABLE == eEntryType);
case SotClipboardFormatId::DBACCESS_QUERY: // query descriptor
case SotClipboardFormatId::DBACCESS_COMMAND: // SQL command
- return ((E_QUERY == eEntryType) || ( !bQueryDrop && E_TABLE == eEntryType));
+ return E_QUERY == eEntryType;
default: break;
}
return false;
diff --git a/dbaccess/source/ui/inc/VertSplitView.hxx b/dbaccess/source/ui/inc/VertSplitView.hxx
index bdc95a51e054..03e40961992d 100644
--- a/dbaccess/source/ui/inc/VertSplitView.hxx
+++ b/dbaccess/source/ui/inc/VertSplitView.hxx
@@ -37,7 +37,7 @@ namespace dbaui
protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) override;
public:
- OSplitterView(vcl::Window* _pParent,bool _bVertical = true);
+ OSplitterView(vcl::Window* _pParent);
virtual ~OSplitterView();
// Window overrides
virtual void dispose() override;
diff --git a/dbaccess/source/ui/inc/dbtreelistbox.hxx b/dbaccess/source/ui/inc/dbtreelistbox.hxx
index f5ec587b8dff..7df484b95eae 100644
--- a/dbaccess/source/ui/inc/dbtreelistbox.hxx
+++ b/dbaccess/source/ui/inc/dbtreelistbox.hxx
@@ -78,9 +78,7 @@ namespace dbaui
DECL_LINK_TYPED( ScrollDownHdl, LinkParamNone*, void );
public:
- DBTreeListBox( vcl::Window* pParent
- ,WinBits nWinStyle=0
- ,bool _bHandleEnterKey = false);
+ DBTreeListBox( vcl::Window* pParent, WinBits nWinStyle=0);
virtual ~DBTreeListBox();
virtual void dispose() override;
diff --git a/dbaccess/source/ui/inc/directsql.hxx b/dbaccess/source/ui/inc/directsql.hxx
index fb1fb1080ee3..aba8f30d7e67 100644
--- a/dbaccess/source/ui/inc/directsql.hxx
+++ b/dbaccess/source/ui/inc/directsql.hxx
@@ -79,7 +79,7 @@ namespace dbaui
protected:
void executeCurrent();
- void switchToHistory(sal_Int32 _nHistoryPos, bool _bUpdateListBox = true);
+ void switchToHistory(sal_Int32 _nHistoryPos);
// OEventListenerAdapter
virtual void _disposing( const css::lang::EventObject& _rSource ) override;
diff --git a/dbaccess/source/ui/inc/dlgattr.hxx b/dbaccess/source/ui/inc/dlgattr.hxx
index 4edb12c484f9..2017654875ce 100644
--- a/dbaccess/source/ui/inc/dlgattr.hxx
+++ b/dbaccess/source/ui/inc/dlgattr.hxx
@@ -33,7 +33,7 @@ namespace dbaui
sal_uInt32 m_nNumberFormatId;
public:
- SbaSbAttrDlg(vcl::Window * pParent, const SfxItemSet*, SvNumberFormatter*, bool bHasFormat, bool bRow = false);
+ SbaSbAttrDlg(vcl::Window * pParent, const SfxItemSet*, SvNumberFormatter*, bool bHasFormat);
virtual ~SbaSbAttrDlg();
virtual void dispose() override;
diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx
index ca3daa2cb096..02673fb6a1fb 100644
--- a/dbaccess/source/ui/inc/unodatbr.hxx
+++ b/dbaccess/source/ui/inc/unodatbr.hxx
@@ -389,12 +389,9 @@ namespace dbaui
If not <NULL/>, the data source tree entry will be returned here
@param _ppContainerEntry
If not <NULL/>, the object container tree entry will be returned here
- @param _bExpandAncestors
- If <TRUE/>, all ancestor on the way to the entry will be expanded
*/
SvTreeListEntry* getObjectEntry(const svx::ODataAccessDescriptor& _rDescriptor,
- SvTreeListEntry** _ppDataSourceEntry = nullptr, SvTreeListEntry** _ppContainerEntry = nullptr,
- bool _bExpandAncestors = true
+ SvTreeListEntry** _ppDataSourceEntry = nullptr, SvTreeListEntry** _ppContainerEntry = nullptr
);
/** retrieves the tree entry for the object described by data source name, command and command type
@param _rDataSource