summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-05 11:00:36 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-05 10:28:25 +0000
commit7fa183cb1a04120b37069c63166182065c3d975c (patch)
tree089d60ab2ffb5976d102b1f25b40fdc756cb4eb1 /dbaccess
parent755a4838054050111f2118d0957041120831f5df (diff)
loplugin:countusersofdefaultparams in chart2..desktop
Change-Id: Iaca94acd6ef91f07ed0c0085390500c418099dee Reviewed-on: https://gerrit.libreoffice.org/27896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.hxx4
-rw-r--r--dbaccess/source/core/dataaccess/documenteventnotifier.hxx8
-rw-r--r--dbaccess/source/inc/dsntypes.hxx2
-rw-r--r--dbaccess/source/ui/inc/JoinTableView.hxx2
-rw-r--r--dbaccess/source/ui/inc/QueryTableView.hxx2
-rw-r--r--dbaccess/source/ui/inc/linkeddocuments.hxx8
-rw-r--r--dbaccess/source/ui/inc/sbagrid.hxx2
-rw-r--r--dbaccess/source/ui/inc/unodatbr.hxx10
-rw-r--r--dbaccess/source/ui/querydesign/TableFieldInfo.hxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.hxx2
10 files changed, 21 insertions, 21 deletions
diff --git a/dbaccess/source/core/api/KeySet.hxx b/dbaccess/source/core/api/KeySet.hxx
index a16d3395c3e3..46117c346a96 100644
--- a/dbaccess/source/core/api/KeySet.hxx
+++ b/dbaccess/source/core/api/KeySet.hxx
@@ -140,8 +140,8 @@ namespace dbaccess
OUStringBuffer createKeyFilter( );
bool doTryRefetch_throw() throw(css::sdbc::SQLException, css::uno::RuntimeException);
void tryRefetch(const ORowSetRow& _rInsertRow,bool bRefetch);
- void executeUpdate(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const OUString& i_sSQL,const OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions = ::std::vector<sal_Int32>());
- void executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQL,const OUString& i_sTableName = OUString(),bool bRefetch = false);
+ void executeUpdate(const ORowSetRow& _rInsertRow, const ORowSetRow& _rOriginalRow, const OUString& i_sSQL, const OUString& i_sTableName,const ::std::vector<sal_Int32>& _aIndexColumnPositions = ::std::vector<sal_Int32>());
+ void executeInsert( const ORowSetRow& _rInsertRow, const OUString& i_sSQL, const OUString& i_sTableName, bool bRefetch = false);
void executeStatement(OUStringBuffer& io_aFilter, css::uno::Reference< css::sdb::XSingleSelectQueryComposer>& io_xAnalyzer);
virtual ~OKeySet();
diff --git a/dbaccess/source/core/dataaccess/documenteventnotifier.hxx b/dbaccess/source/core/dataaccess/documenteventnotifier.hxx
index e1b5e009d1e2..4ad32df302ee 100644
--- a/dbaccess/source/core/dataaccess/documenteventnotifier.hxx
+++ b/dbaccess/source/core/dataaccess/documenteventnotifier.hxx
@@ -71,8 +71,8 @@ namespace dbaccess
*/
void notifyDocumentEvent(
const OUString& EventName,
- const css::uno::Reference< css::frame::XController2 >& _rxViewController = nullptr,
- const css::uno::Any& Supplement = css::uno::Any()
+ const css::uno::Reference< css::frame::XController2 >& _rxViewController,
+ const css::uno::Any& Supplement
);
/** notifies a document event, described by the given parameters, asynchronously
@@ -84,8 +84,8 @@ namespace dbaccess
*/
void notifyDocumentEventAsync(
const OUString& EventName,
- const css::uno::Reference< css::frame::XController2 >& ViewController = nullptr,
- const css::uno::Any& Supplement = css::uno::Any()
+ const css::uno::Reference< css::frame::XController2 >& ViewController,
+ const css::uno::Any& Supplement
);
/** notifies a document event to all registered listeners
diff --git a/dbaccess/source/inc/dsntypes.hxx b/dbaccess/source/inc/dsntypes.hxx
index 0ed4b22744a2..75c6739a2fe1 100644
--- a/dbaccess/source/inc/dsntypes.hxx
+++ b/dbaccess/source/inc/dsntypes.hxx
@@ -137,7 +137,7 @@ public:
OUString getMediaType(const OUString& _sURL) const;
/// returns the dsn prefix for a given media type
- OUString getDatasourcePrefixFromMediaType(const OUString& _sMediaType,const OUString& _sExtension = OUString() );
+ OUString getDatasourcePrefixFromMediaType(const OUString& _sMediaType, const OUString& _sExtension );
void extractHostNamePort(const OUString& _rDsn,OUString& _sDatabaseName,OUString& _rHostname,sal_Int32& _nPortNumber) const;
diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx
index 4b8c7cb3e469..3dff933c2736 100644
--- a/dbaccess/source/ui/inc/JoinTableView.hxx
+++ b/dbaccess/source/ui/inc/JoinTableView.hxx
@@ -318,7 +318,7 @@ namespace dbaui
modified
@param _pAction a possible undo action to add at the controller
*/
- void invalidateAndModify(SfxUndoAction *_pAction=nullptr);
+ void invalidateAndModify(SfxUndoAction *_pAction);
private:
using Window::Scroll;
diff --git a/dbaccess/source/ui/inc/QueryTableView.hxx b/dbaccess/source/ui/inc/QueryTableView.hxx
index 03a8c030901b..3af0da506faf 100644
--- a/dbaccess/source/ui/inc/QueryTableView.hxx
+++ b/dbaccess/source/ui/inc/QueryTableView.hxx
@@ -54,7 +54,7 @@ namespace dbaui
virtual void RemoveTabWin(OTableWindow* pTabWin) override;
/// AddTabWin, setting an alias
- void AddTabWin(const OUString& strDatabase, const OUString& strTableName, const OUString& strAlias, bool bNewTable = false);
+ void AddTabWin(const OUString& strDatabase, const OUString& strTableName, const OUString& strAlias, bool bNewTable);
/// search TabWin
OQueryTableWindow* FindTable(const OUString& rAliasName);
bool FindTableFromField(const OUString& rFieldName, OTableFieldDescRef& rInfo, sal_uInt16& rCnt);
diff --git a/dbaccess/source/ui/inc/linkeddocuments.hxx b/dbaccess/source/ui/inc/linkeddocuments.hxx
index 90846ac5ae7c..33274caa8fcb 100644
--- a/dbaccess/source/ui/inc/linkeddocuments.hxx
+++ b/dbaccess/source/ui/inc/linkeddocuments.hxx
@@ -82,12 +82,12 @@ namespace dbaui
);
void newFormWithPilot(
- const sal_Int32 _nCommandType = -1,
- const OUString& _rObjectName = OUString()
+ const sal_Int32 _nCommandType,
+ const OUString& _rObjectName
);
void newReportWithPilot(
- const sal_Int32 _nCommandType = -1,
- const OUString& _rObjectName = OUString()
+ const sal_Int32 _nCommandType,
+ const OUString& _rObjectName
);
void newQueryWithPilot();
void newTableWithPilot();
diff --git a/dbaccess/source/ui/inc/sbagrid.hxx b/dbaccess/source/ui/inc/sbagrid.hxx
index 123cee3dda73..11606ddd9d5c 100644
--- a/dbaccess/source/ui/inc/sbagrid.hxx
+++ b/dbaccess/source/ui/inc/sbagrid.hxx
@@ -133,7 +133,7 @@ namespace dbaui
typedef css::uno::Reference< xstlist_type > xlistener_type;
void NotifyStatusChanged(const css::util::URL& aUrl, const xlistener_type & xControl = xlistener_type() );
#else
- void NotifyStatusChanged(const css::util::URL& aUrl, const css::uno::Reference< css::frame::XStatusListener > & xControl = css::uno::Reference< css::frame::XStatusListener > ());
+ void NotifyStatusChanged(const css::util::URL& aUrl, const css::uno::Reference< css::frame::XStatusListener > & xControl);
#endif // # _MSC_VER
private:
diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx
index 68b7acc801af..ad7d51951039 100644
--- a/dbaccess/source/ui/inc/unodatbr.hxx
+++ b/dbaccess/source/ui/inc/unodatbr.hxx
@@ -253,7 +253,7 @@ namespace dbaui
// returns <TRUE/> if the entry is selected (which means it's part of the selected path)
static bool isSelected(SvTreeListEntry* _pEntry);
// select the entry (and only the entry, not the whole path)
- void select(SvTreeListEntry* _pEntry, bool _bSelect = true);
+ void select(SvTreeListEntry* _pEntry, bool _bSelect);
// select the path of the entry (which must be an entry without children)
void selectPath(SvTreeListEntry* _pEntry, bool _bSelect = true);
@@ -365,7 +365,7 @@ namespace dbaui
const sal_Int32 _nCommandType,
const bool _bEscapeProcessing,
const SharedConnection& _rxConnection,
- bool _bSelectDirect = false
+ bool _bSelectDirect
);
SvTreeListEntry* implGetConnectionEntry(SvTreeListEntry* _pEntry) const;
@@ -379,7 +379,7 @@ namespace dbaui
/// loads the grid control with the data object specified (which may be a table, a query or a command)
bool implLoadAnything(const OUString& _rDataSourceName, const OUString& _rCommand,
- const sal_Int32 _nCommandType, const bool _bEscapeProcessing, const SharedConnection& _rxConnection = SharedConnection() );
+ const sal_Int32 _nCommandType, const bool _bEscapeProcessing, const SharedConnection& _rxConnection );
/** retrieves the tree entry for the object described by <arg>_rDescriptor</arg>
@param _rDescriptor
@@ -390,7 +390,7 @@ namespace dbaui
If not <NULL/>, the object container tree entry will be returned here
*/
SvTreeListEntry* getObjectEntry(const svx::ODataAccessDescriptor& _rDescriptor,
- SvTreeListEntry** _ppDataSourceEntry = nullptr, SvTreeListEntry** _ppContainerEntry = nullptr
+ SvTreeListEntry** _ppDataSourceEntry, SvTreeListEntry** _ppContainerEntry
);
/** retrieves the tree entry for the object described by data source name, command and command type
@param _rDataSource
@@ -410,7 +410,7 @@ namespace dbaui
*/
SvTreeListEntry* getObjectEntry(
const OUString& _rDataSource, const OUString& _rCommand, sal_Int32 _nCommandType,
- SvTreeListEntry** _ppDataSourceEntry = nullptr, SvTreeListEntry** _ppContainerEntry = nullptr,
+ SvTreeListEntry** _ppDataSourceEntry, SvTreeListEntry** _ppContainerEntry,
bool _bExpandAncestors = true,
const SharedConnection& _rxConnection = SharedConnection()
);
diff --git a/dbaccess/source/ui/querydesign/TableFieldInfo.hxx b/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
index 483a37caf6e4..9c4e2421270a 100644
--- a/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
+++ b/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
@@ -35,7 +35,7 @@ namespace dbaui
~OTableFieldInfo();
inline ETableFieldType GetKeyType() const { return m_eFieldType; }
- inline void SetKey(ETableFieldType bKey=TAB_NORMAL_FIELD) { m_eFieldType = bKey; }
+ inline void SetKey(ETableFieldType bKey) { m_eFieldType = bKey; }
inline sal_Int32 GetDataType() const { return m_eDataType; }
inline void SetDataType(sal_Int32 eTyp) { m_eDataType = eTyp; }
};
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.hxx b/dbaccess/source/ui/tabledesign/TEditControl.hxx
index 13ef2b03034f..f0af73a4d780 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.hxx
@@ -147,7 +147,7 @@ namespace dbaui
const ::std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; }
void CellModified( long nRow, sal_uInt16 nColId );
- void SetReadOnly( bool bRead=true );
+ void SetReadOnly( bool bRead );
virtual void Init() override;
virtual void DeactivateCell(bool bUpdate = true) override;