Kaydet (Commit) 7fa183cb authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:countusersofdefaultparams in chart2..desktop

Change-Id: Iaca94acd6ef91f07ed0c0085390500c418099dee
Reviewed-on: https://gerrit.libreoffice.org/27896Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 755a4838
...@@ -104,7 +104,7 @@ private: ...@@ -104,7 +104,7 @@ private:
DECL_LINK_TYPED(UpdateTimerHdl, Idle*, void); DECL_LINK_TYPED(UpdateTimerHdl, Idle*, void);
static int calcTimeInterval(TimeValue &startTime, TimeValue &endTime); static int calcTimeInterval(TimeValue &startTime, TimeValue &endTime);
float addScreenTextShape(OUString &nStr, const glm::vec2& rLeftOrRightTop, float nTextHeight, bool bLeftTopFlag, float addScreenTextShape(OUString &nStr, const glm::vec2& rLeftOrRightTop, float nTextHeight, bool bLeftTopFlag,
const glm::vec4& rColor = glm::vec4(0.0f, 1.0f, 1.0f, 0.0f), const glm::vec4& rColor,
const glm::vec3& rPos = glm::vec3(0.0f, 0.0f, 0.0f), const glm::vec3& rPos = glm::vec3(0.0f, 0.0f, 0.0f),
sal_uInt32 nEvent = 0); sal_uInt32 nEvent = 0);
void recordBarHistory(sal_uInt32 &nBarID, float &nVal); void recordBarHistory(sal_uInt32 &nBarID, float &nVal);
......
...@@ -78,7 +78,7 @@ namespace connectivity ...@@ -78,7 +78,7 @@ namespace connectivity
void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols); void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols);
static OOperandAttr* createOperandAttr(sal_Int32 _nPos, static OOperandAttr* createOperandAttr(sal_Int32 _nPos,
const css::uno::Reference< css::beans::XPropertySet>& _xCol, const css::uno::Reference< css::beans::XPropertySet>& _xCol,
const css::uno::Reference< css::container::XNameAccess>& _xIndexes=nullptr); const css::uno::Reference< css::container::XNameAccess>& _xIndexes);
}; };
} }
} }
......
...@@ -36,7 +36,7 @@ namespace connectivity ...@@ -36,7 +36,7 @@ namespace connectivity
QuotedTokenizedString() {} QuotedTokenizedString() {}
sal_Int32 GetTokenCount( sal_Unicode cTok , sal_Unicode cStrDel ) const; sal_Int32 GetTokenCount( sal_Unicode cTok , sal_Unicode cStrDel ) const;
OUString GetTokenSpecial(sal_Int32& nStartPos, sal_Unicode cTok = ';', sal_Unicode cStrDel = '\0') const; OUString GetTokenSpecial(sal_Int32& nStartPos, sal_Unicode cTok, sal_Unicode cStrDel = '\0') const;
inline OUString& GetString() { return m_sString; } inline OUString& GetString() { return m_sString; }
inline void SetString(const OUString& aStr) { m_sString = aStr;} inline void SetString(const OUString& aStr) { m_sString = aStr;}
inline sal_Int32 Len() const { return m_sString.getLength(); } inline sal_Int32 Len() const { return m_sString.getLength(); }
......
...@@ -57,7 +57,7 @@ namespace connectivity ...@@ -57,7 +57,7 @@ namespace connectivity
bool m_bNeedToReadLine; bool m_bNeedToReadLine;
private: private:
void fillColumns(const css::lang::Locale& _aLocale); void fillColumns(const css::lang::Locale& _aLocale);
bool readLine(sal_Int32 *pEndPos = nullptr, sal_Int32 *pStartPos = nullptr, bool nonEmpty = false); bool readLine(sal_Int32 *pEndPos, sal_Int32 *pStartPos, bool nonEmpty = false);
void setRowPos(::std::vector<TRowPositionInFile>::size_type rowNum, const TRowPositionInFile &rowPos); void setRowPos(::std::vector<TRowPositionInFile>::size_type rowNum, const TRowPositionInFile &rowPos);
void impl_fillColumnInfo_nothrow(QuotedTokenizedString& aFirstLine, sal_Int32& nStartPosFirstLine, sal_Int32& nStartPosFirstLine2, void impl_fillColumnInfo_nothrow(QuotedTokenizedString& aFirstLine, sal_Int32& nStartPosFirstLine, sal_Int32& nStartPosFirstLine2,
sal_Int32& io_nType, sal_Int32& io_nPrecisions, sal_Int32& io_nScales, OUString& o_sTypeName, sal_Int32& io_nType, sal_Int32& io_nPrecisions, sal_Int32& io_nScales, OUString& o_sTypeName,
......
...@@ -72,7 +72,7 @@ static inline bool idefaultConstructElements( ...@@ -72,7 +72,7 @@ static inline bool idefaultConstructElements(
uno_Sequence ** ppSeq, uno_Sequence ** ppSeq,
typelib_TypeDescriptionReference * pElementType, typelib_TypeDescriptionReference * pElementType,
sal_Int32 nStartIndex, sal_Int32 nStopIndex, sal_Int32 nStartIndex, sal_Int32 nStopIndex,
sal_Int32 nAlloc = -1 ) // >= 0 means (re)alloc memory for nAlloc elements sal_Int32 nAlloc ) // >= 0 means (re)alloc memory for nAlloc elements
{ {
uno_Sequence * pSeq = *ppSeq; uno_Sequence * pSeq = *ppSeq;
switch (pElementType->eTypeClass) switch (pElementType->eTypeClass)
...@@ -318,7 +318,7 @@ static inline bool icopyConstructFromElements( ...@@ -318,7 +318,7 @@ static inline bool icopyConstructFromElements(
typelib_TypeDescriptionReference * pElementType, typelib_TypeDescriptionReference * pElementType,
sal_Int32 nStartIndex, sal_Int32 nStopIndex, sal_Int32 nStartIndex, sal_Int32 nStopIndex,
uno_AcquireFunc acquire, uno_AcquireFunc acquire,
sal_Int32 nAlloc = -1 ) // >= 0 means (re)alloc memory for nAlloc elements sal_Int32 nAlloc ) // >= 0 means (re)alloc memory for nAlloc elements
{ {
uno_Sequence * pSeq = *ppSeq; uno_Sequence * pSeq = *ppSeq;
switch (pElementType->eTypeClass) switch (pElementType->eTypeClass)
......
...@@ -100,7 +100,7 @@ namespace svx ...@@ -100,7 +100,7 @@ namespace svx
public: public:
void Paint( OutputDevice& _rDevice, const Rectangle& _rRect, DrawTextFlags _nTextStyle, void Paint( OutputDevice& _rDevice, const Rectangle& _rRect, DrawTextFlags _nTextStyle,
Rectangle* _pPrimaryLocation = nullptr, Rectangle* _pSecondaryLocation = nullptr, Rectangle* _pPrimaryLocation, Rectangle* _pSecondaryLocation,
vcl::ControlLayoutData* _pLayoutData = nullptr ); vcl::ControlLayoutData* _pLayoutData = nullptr );
}; };
......
...@@ -100,7 +100,7 @@ protected: ...@@ -100,7 +100,7 @@ protected:
void ApplyMenu( void ApplyMenu(
css::uno::Reference< css::container::XIndexContainer >& rMenuBar, css::uno::Reference< css::container::XIndexContainer >& rMenuBar,
css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory, css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
SvxConfigEntry *pMenuData = nullptr ); SvxConfigEntry *pMenuData );
bool LoadSubMenus( bool LoadSubMenus(
const css::uno::Reference< css::container::XIndexAccess >& xMenuSettings, const css::uno::Reference< css::container::XIndexAccess >& xMenuSettings,
...@@ -614,7 +614,7 @@ private: ...@@ -614,7 +614,7 @@ private:
void ApplyToolbar( void ApplyToolbar(
css::uno::Reference< css::container::XIndexContainer >& rNewToolbarBar, css::uno::Reference< css::container::XIndexContainer >& rNewToolbarBar,
css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory, css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
SvxConfigEntry *pToolbar = nullptr ); SvxConfigEntry *pToolbar );
public: public:
......
...@@ -60,7 +60,7 @@ public: ...@@ -60,7 +60,7 @@ public:
@todo Remove the parameter bCheckImmediately and incorporate the 'true' @todo Remove the parameter bCheckImmediately and incorporate the 'true'
behaviour as default. behaviour as default.
*/ */
void SetCheckNameHdl( const Link<SvxNameDialog&,bool>& rLink, bool bCheckImmediately = false ) void SetCheckNameHdl( const Link<SvxNameDialog&,bool>& rLink, bool bCheckImmediately )
{ {
aCheckNameHdl = rLink; aCheckNameHdl = rLink;
if ( bCheckImmediately ) if ( bCheckImmediately )
......
...@@ -157,7 +157,7 @@ namespace svx ...@@ -157,7 +157,7 @@ namespace svx
void SetCurrentString( void SetCurrentString(
const OUString& _rNewString, const OUString& _rNewString,
const css::uno::Sequence< OUString >& _rSuggestions, const css::uno::Sequence< OUString >& _rSuggestions,
bool _bOriginatesFromDocument = true bool _bOriginatesFromDocument
); );
void FocusSuggestion( ); void FocusSuggestion( );
......
...@@ -70,7 +70,7 @@ public: ...@@ -70,7 +70,7 @@ public:
virtual ~CuiAboutConfigTabPage(); virtual ~CuiAboutConfigTabPage();
virtual void dispose() override; virtual void dispose() override;
void InsertEntry(const OUString &rPropertyPath, const OUString& rProp, const OUString& rStatus, const OUString& rType, const OUString& rValue, void InsertEntry(const OUString &rPropertyPath, const OUString& rProp, const OUString& rStatus, const OUString& rType, const OUString& rValue,
SvTreeListEntry *pParentEntry = nullptr, bool bInsertToPrefBox = true); SvTreeListEntry *pParentEntry, bool bInsertToPrefBox);
void Reset(); void Reset();
void FillItems(const css::uno::Reference<css::container::XNameAccess>& xNameAccess, void FillItems(const css::uno::Reference<css::container::XNameAccess>& xNameAccess,
SvTreeListEntry *pParentEntry = nullptr, int lineage = 0, bool bLoadAll = false); SvTreeListEntry *pParentEntry = nullptr, int lineage = 0, bool bLoadAll = false);
......
...@@ -140,8 +140,8 @@ namespace dbaccess ...@@ -140,8 +140,8 @@ namespace dbaccess
OUStringBuffer createKeyFilter( ); OUStringBuffer createKeyFilter( );
bool doTryRefetch_throw() throw(css::sdbc::SQLException, css::uno::RuntimeException); bool doTryRefetch_throw() throw(css::sdbc::SQLException, css::uno::RuntimeException);
void tryRefetch(const ORowSetRow& _rInsertRow,bool bRefetch); 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 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 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); void executeStatement(OUStringBuffer& io_aFilter, css::uno::Reference< css::sdb::XSingleSelectQueryComposer>& io_xAnalyzer);
virtual ~OKeySet(); virtual ~OKeySet();
......
...@@ -71,8 +71,8 @@ namespace dbaccess ...@@ -71,8 +71,8 @@ namespace dbaccess
*/ */
void notifyDocumentEvent( void notifyDocumentEvent(
const OUString& EventName, const OUString& EventName,
const css::uno::Reference< css::frame::XController2 >& _rxViewController = nullptr, const css::uno::Reference< css::frame::XController2 >& _rxViewController,
const css::uno::Any& Supplement = css::uno::Any() const css::uno::Any& Supplement
); );
/** notifies a document event, described by the given parameters, asynchronously /** notifies a document event, described by the given parameters, asynchronously
...@@ -84,8 +84,8 @@ namespace dbaccess ...@@ -84,8 +84,8 @@ namespace dbaccess
*/ */
void notifyDocumentEventAsync( void notifyDocumentEventAsync(
const OUString& EventName, const OUString& EventName,
const css::uno::Reference< css::frame::XController2 >& ViewController = nullptr, const css::uno::Reference< css::frame::XController2 >& ViewController,
const css::uno::Any& Supplement = css::uno::Any() const css::uno::Any& Supplement
); );
/** notifies a document event to all registered listeners /** notifies a document event to all registered listeners
......
...@@ -137,7 +137,7 @@ public: ...@@ -137,7 +137,7 @@ public:
OUString getMediaType(const OUString& _sURL) const; OUString getMediaType(const OUString& _sURL) const;
/// returns the dsn prefix for a given media type /// 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; void extractHostNamePort(const OUString& _rDsn,OUString& _sDatabaseName,OUString& _rHostname,sal_Int32& _nPortNumber) const;
......
...@@ -318,7 +318,7 @@ namespace dbaui ...@@ -318,7 +318,7 @@ namespace dbaui
modified modified
@param _pAction a possible undo action to add at the controller @param _pAction a possible undo action to add at the controller
*/ */
void invalidateAndModify(SfxUndoAction *_pAction=nullptr); void invalidateAndModify(SfxUndoAction *_pAction);
private: private:
using Window::Scroll; using Window::Scroll;
......
...@@ -54,7 +54,7 @@ namespace dbaui ...@@ -54,7 +54,7 @@ namespace dbaui
virtual void RemoveTabWin(OTableWindow* pTabWin) override; virtual void RemoveTabWin(OTableWindow* pTabWin) override;
/// AddTabWin, setting an alias /// 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 /// search TabWin
OQueryTableWindow* FindTable(const OUString& rAliasName); OQueryTableWindow* FindTable(const OUString& rAliasName);
bool FindTableFromField(const OUString& rFieldName, OTableFieldDescRef& rInfo, sal_uInt16& rCnt); bool FindTableFromField(const OUString& rFieldName, OTableFieldDescRef& rInfo, sal_uInt16& rCnt);
......
...@@ -82,12 +82,12 @@ namespace dbaui ...@@ -82,12 +82,12 @@ namespace dbaui
); );
void newFormWithPilot( void newFormWithPilot(
const sal_Int32 _nCommandType = -1, const sal_Int32 _nCommandType,
const OUString& _rObjectName = OUString() const OUString& _rObjectName
); );
void newReportWithPilot( void newReportWithPilot(
const sal_Int32 _nCommandType = -1, const sal_Int32 _nCommandType,
const OUString& _rObjectName = OUString() const OUString& _rObjectName
); );
void newQueryWithPilot(); void newQueryWithPilot();
void newTableWithPilot(); void newTableWithPilot();
......
...@@ -133,7 +133,7 @@ namespace dbaui ...@@ -133,7 +133,7 @@ namespace dbaui
typedef css::uno::Reference< xstlist_type > xlistener_type; typedef css::uno::Reference< xstlist_type > xlistener_type;
void NotifyStatusChanged(const css::util::URL& aUrl, const xlistener_type & xControl = xlistener_type() ); void NotifyStatusChanged(const css::util::URL& aUrl, const xlistener_type & xControl = xlistener_type() );
#else #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 #endif // # _MSC_VER
private: private:
......
...@@ -253,7 +253,7 @@ namespace dbaui ...@@ -253,7 +253,7 @@ namespace dbaui
// returns <TRUE/> if the entry is selected (which means it's part of the selected path) // returns <TRUE/> if the entry is selected (which means it's part of the selected path)
static bool isSelected(SvTreeListEntry* _pEntry); static bool isSelected(SvTreeListEntry* _pEntry);
// select the entry (and only the entry, not the whole path) // 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) // select the path of the entry (which must be an entry without children)
void selectPath(SvTreeListEntry* _pEntry, bool _bSelect = true); void selectPath(SvTreeListEntry* _pEntry, bool _bSelect = true);
...@@ -365,7 +365,7 @@ namespace dbaui ...@@ -365,7 +365,7 @@ namespace dbaui
const sal_Int32 _nCommandType, const sal_Int32 _nCommandType,
const bool _bEscapeProcessing, const bool _bEscapeProcessing,
const SharedConnection& _rxConnection, const SharedConnection& _rxConnection,
bool _bSelectDirect = false bool _bSelectDirect
); );
SvTreeListEntry* implGetConnectionEntry(SvTreeListEntry* _pEntry) const; SvTreeListEntry* implGetConnectionEntry(SvTreeListEntry* _pEntry) const;
...@@ -379,7 +379,7 @@ namespace dbaui ...@@ -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) /// 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, 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> /** retrieves the tree entry for the object described by <arg>_rDescriptor</arg>
@param _rDescriptor @param _rDescriptor
...@@ -390,7 +390,7 @@ namespace dbaui ...@@ -390,7 +390,7 @@ namespace dbaui
If not <NULL/>, the object container tree entry will be returned here If not <NULL/>, the object container tree entry will be returned here
*/ */
SvTreeListEntry* getObjectEntry(const svx::ODataAccessDescriptor& _rDescriptor, 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 /** retrieves the tree entry for the object described by data source name, command and command type
@param _rDataSource @param _rDataSource
...@@ -410,7 +410,7 @@ namespace dbaui ...@@ -410,7 +410,7 @@ namespace dbaui
*/ */
SvTreeListEntry* getObjectEntry( SvTreeListEntry* getObjectEntry(
const OUString& _rDataSource, const OUString& _rCommand, sal_Int32 _nCommandType, const OUString& _rDataSource, const OUString& _rCommand, sal_Int32 _nCommandType,
SvTreeListEntry** _ppDataSourceEntry = nullptr, SvTreeListEntry** _ppContainerEntry = nullptr, SvTreeListEntry** _ppDataSourceEntry, SvTreeListEntry** _ppContainerEntry,
bool _bExpandAncestors = true, bool _bExpandAncestors = true,
const SharedConnection& _rxConnection = SharedConnection() const SharedConnection& _rxConnection = SharedConnection()
); );
......
...@@ -35,7 +35,7 @@ namespace dbaui ...@@ -35,7 +35,7 @@ namespace dbaui
~OTableFieldInfo(); ~OTableFieldInfo();
inline ETableFieldType GetKeyType() const { return m_eFieldType; } 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 sal_Int32 GetDataType() const { return m_eDataType; }
inline void SetDataType(sal_Int32 eTyp) { m_eDataType = eTyp; } inline void SetDataType(sal_Int32 eTyp) { m_eDataType = eTyp; }
}; };
......
...@@ -147,7 +147,7 @@ namespace dbaui ...@@ -147,7 +147,7 @@ namespace dbaui
const ::std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; } const ::std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; }
void CellModified( long nRow, sal_uInt16 nColId ); void CellModified( long nRow, sal_uInt16 nColId );
void SetReadOnly( bool bRead=true ); void SetReadOnly( bool bRead );
virtual void Init() override; virtual void Init() override;
virtual void DeactivateCell(bool bUpdate = true) override; virtual void DeactivateCell(bool bUpdate = true) override;
......
...@@ -77,7 +77,7 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu ...@@ -77,7 +77,7 @@ class DispatchWatcher : public ::cppu::WeakImplHelper< css::frame::XDispatchResu
virtual void SAL_CALL dispatchFinished( const css::frame::DispatchResultEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override; virtual void SAL_CALL dispatchFinished( const css::frame::DispatchResultEvent& aEvent ) throw( css::uno::RuntimeException, std::exception ) override;
// execute new dispatch request // execute new dispatch request
bool executeDispatchRequests( const std::vector<DispatchRequest>& aDispatches, bool bNoTerminate = false ); bool executeDispatchRequests( const std::vector<DispatchRequest>& aDispatches, bool bNoTerminate );
private: private:
osl::Mutex m_mutex; osl::Mutex m_mutex;
......
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
void startProgress(); void startProgress();
void stopProgress(); void stopProgress();
void progressSection( const OUString &rText, void progressSection( const OUString &rText,
const uno::Reference< task::XAbortChannel > &xAbortChannel = nullptr ); const uno::Reference< task::XAbortChannel > &xAbortChannel );
inline void setWarnUser( bool bNewVal ) { m_bWarnUser = bNewVal; } inline void setWarnUser( bool bNewVal ) { m_bWarnUser = bNewVal; }
// XCommandEnvironment // XCommandEnvironment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment