Kaydet (Commit) a880ec81 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:staticmethods

Change-Id: Id7fc12bc61c6e803f45cc60556d9cf54ac2e529f
üst 79ed057b
...@@ -79,7 +79,7 @@ private: ...@@ -79,7 +79,7 @@ private:
bool bFillBox; bool bFillBox;
com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
void ReleaseFocus(); static void ReleaseFocus();
void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation ); void InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLocation );
void ClearBox(); void ClearBox();
......
...@@ -311,7 +311,7 @@ private: ...@@ -311,7 +311,7 @@ private:
void CheckCompileBasic(); void CheckCompileBasic();
bool BasicExecute(); bool BasicExecute();
void GoOnTop(); static void GoOnTop();
sal_Int32 FormatAndPrint( Printer* pPrinter, sal_Int32 nPage = -1 ); sal_Int32 FormatAndPrint( Printer* pPrinter, sal_Int32 nPage = -1 );
SbModuleRef XModule(); SbModuleRef XModule();
......
...@@ -1346,7 +1346,7 @@ sal_Int32 DialogWindow::countPages( Printer* ) ...@@ -1346,7 +1346,7 @@ sal_Int32 DialogWindow::countPages( Printer* )
void DialogWindow::printPage( sal_Int32 nPage, Printer* pPrinter ) void DialogWindow::printPage( sal_Int32 nPage, Printer* pPrinter )
{ {
pEditor->printPage( nPage, pPrinter, CreateQualifiedName() ); DlgEditor::printPage( nPage, pPrinter, CreateQualifiedName() );
} }
void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt ) void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt )
......
...@@ -225,7 +225,7 @@ public: ...@@ -225,7 +225,7 @@ public:
EntryDescriptor GetEntryDescriptor( SvTreeListEntry* pEntry ); EntryDescriptor GetEntryDescriptor( SvTreeListEntry* pEntry );
ItemType ConvertType (EntryType eType); static ItemType ConvertType (EntryType eType);
bool IsValidEntry( SvTreeListEntry* pEntry ); bool IsValidEntry( SvTreeListEntry* pEntry );
SvTreeListEntry* AddEntry( SvTreeListEntry* AddEntry(
...@@ -236,8 +236,8 @@ public: ...@@ -236,8 +236,8 @@ public:
void RemoveEntry (SvTreeListEntry*); void RemoveEntry (SvTreeListEntry*);
void RemoveEntry (ScriptDocument const&); void RemoveEntry (ScriptDocument const&);
OUString GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation ) const; OUString GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation ) const;
void GetRootEntryBitmaps( const ScriptDocument& rDocument, Image& rImage ); static void GetRootEntryBitmaps( const ScriptDocument& rDocument, Image& rImage );
void SetCurrentEntry (EntryDescriptor&); void SetCurrentEntry (EntryDescriptor&);
......
...@@ -79,7 +79,7 @@ private: ...@@ -79,7 +79,7 @@ private:
void EnableButton( Button& rButton, bool bEnable ); void EnableButton( Button& rButton, bool bEnable );
OUString GetInfo( SbxVariable* pVar ); static OUString GetInfo( SbxVariable* pVar );
void StoreMacroDescription(); void StoreMacroDescription();
void RestoreMacroDescription(); void RestoreMacroDescription();
......
...@@ -695,7 +695,7 @@ IMPL_LINK( ObjectPage, ButtonHdl, Button *, pButton ) ...@@ -695,7 +695,7 @@ IMPL_LINK( ObjectPage, ButtonHdl, Button *, pButton )
aModName = aModName.getToken( 0, ' ', nIndex ); aModName = aModName.getToken( 0, ' ', nIndex );
} }
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDesc.GetDocument(), aDesc.GetLibName(), SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDesc.GetDocument(), aDesc.GetLibName(),
aModName, m_pBasicBox->ConvertType( aDesc.GetType() ) ); aModName, TreeListBox::ConvertType( aDesc.GetType() ) );
pDispatcher->Execute( SID_BASICIDE_SHOWSBX, SfxCallMode::SYNCHRON, &aSbxItem, 0L ); pDispatcher->Execute( SID_BASICIDE_SHOWSBX, SfxCallMode::SYNCHRON, &aSbxItem, 0L );
} }
} }
...@@ -876,7 +876,7 @@ void ObjectPage::DeleteCurrent() ...@@ -876,7 +876,7 @@ void ObjectPage::DeleteCurrent()
m_pBasicBox->Select( m_pBasicBox->GetCurEntry() ); m_pBasicBox->Select( m_pBasicBox->GetCurEntry() );
if (SfxDispatcher* pDispatcher = GetDispatcher()) if (SfxDispatcher* pDispatcher = GetDispatcher())
{ {
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDocument, aLibName, aName, m_pBasicBox->ConvertType( eType ) ); SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDocument, aLibName, aName, TreeListBox::ConvertType( eType ) );
pDispatcher->Execute( SID_BASICIDE_SBXDELETED, pDispatcher->Execute( SID_BASICIDE_SBXDELETED,
SfxCallMode::SYNCHRON, &aSbxItem, 0L ); SfxCallMode::SYNCHRON, &aSbxItem, 0L );
} }
......
...@@ -132,13 +132,13 @@ namespace basctl ...@@ -132,13 +132,13 @@ namespace basctl
virtual bool includeDocument( const docs::DocumentDescriptor& _rDocument ) const SAL_OVERRIDE; virtual bool includeDocument( const docs::DocumentDescriptor& _rDocument ) const SAL_OVERRIDE;
private: private:
bool impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument ) const; static bool impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument );
private: private:
bool m_bFilterInvisible; bool m_bFilterInvisible;
}; };
bool FilterDocuments::impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument ) const bool FilterDocuments::impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument )
{ {
try try
{ {
......
...@@ -28,7 +28,7 @@ namespace basctl ...@@ -28,7 +28,7 @@ namespace basctl
class SIDEModel : public SfxBaseModel, class SIDEModel : public SfxBaseModel,
public com::sun::star::lang::XServiceInfo public com::sun::star::lang::XServiceInfo
{ {
void notImplemented() throw ( ::com::sun::star::io::IOException ); static void notImplemented() throw ( ::com::sun::star::io::IOException );
public: public:
SIDEModel( SfxObjectShell *pObjSh = 0 ); SIDEModel( SfxObjectShell *pObjSh = 0 );
virtual ~SIDEModel(); virtual ~SIDEModel();
......
...@@ -96,7 +96,7 @@ private: ...@@ -96,7 +96,7 @@ private:
void CheckWindows(); void CheckWindows();
void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName, bool bDestroy ); void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName, bool bDestroy );
void UpdateWindows(); void UpdateWindows();
void InvalidateBasicIDESlots(); static void InvalidateBasicIDESlots();
void StoreAllWindowData( bool bPersistent = true ); void StoreAllWindowData( bool bPersistent = true );
void SetMDITitle(); void SetMDITitle();
void EnableScrollbars( bool bEnable ); void EnableScrollbars( bool bEnable );
......
...@@ -103,7 +103,7 @@ public: ...@@ -103,7 +103,7 @@ public:
private: private:
DECL_LINK(MarkTimeout, void *); DECL_LINK(MarkTimeout, void *);
void Print( Printer* pPrinter, const OUString& rTitle ); static void Print( Printer* pPrinter, const OUString& rTitle );
private: private:
ScrollBar* pHScroll; ScrollBar* pHScroll;
...@@ -202,7 +202,7 @@ public: ...@@ -202,7 +202,7 @@ public:
void ShowProperties(); void ShowProperties();
void UpdatePropertyBrowserDelayed(); void UpdatePropertyBrowserDelayed();
void printPage( sal_Int32 nPage, Printer* pPrinter, const OUString& ); static void printPage( sal_Int32 nPage, Printer* pPrinter, const OUString& );
bool AdjustPageSize(); bool AdjustPageSize();
......
...@@ -39,7 +39,7 @@ private: ...@@ -39,7 +39,7 @@ private:
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > m_SeqData; ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > m_SeqData;
protected: protected:
bool compareDataFlavors( const ::com::sun::star::datatransfer::DataFlavor& lFlavor, const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); static bool compareDataFlavors( const ::com::sun::star::datatransfer::DataFlavor& lFlavor, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
public: public:
DlgEdTransferableImpl( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& aSeqFlavors, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aSeqData ); DlgEdTransferableImpl( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& aSeqFlavors, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aSeqData );
......
...@@ -61,7 +61,7 @@ protected: ...@@ -61,7 +61,7 @@ protected:
typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> > InterfaceArray; typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> > InterfaceArray;
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > static ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >
CreateMultiSelectionSequence( const SdrMarkList& _rMarkList ); CreateMultiSelectionSequence( const SdrMarkList& _rMarkList );
void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >& _rObjectSeq ); < ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >& _rObjectSeq );
...@@ -69,7 +69,7 @@ protected: ...@@ -69,7 +69,7 @@ protected:
void implSetNewObject( void implSetNewObject(
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject); const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
OUString GetHeadlineName( static OUString GetHeadlineName(
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject); const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
public: public:
......
...@@ -101,7 +101,7 @@ class BibConfig : public utl::ConfigItem ...@@ -101,7 +101,7 @@ class BibConfig : public utl::ConfigItem
OUString aColumnDefaults[COLUMN_COUNT]; OUString aColumnDefaults[COLUMN_COUNT];
com::sun::star::uno::Sequence<OUString> GetPropertyNames(); static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
virtual void ImplCommit() SAL_OVERRIDE; virtual void ImplCommit() SAL_OVERRIDE;
......
...@@ -38,7 +38,7 @@ class BibModul ...@@ -38,7 +38,7 @@ class BibModul
ResMgr* GetResMgr(){return pResMgr;} ResMgr* GetResMgr(){return pResMgr;}
static BibConfig* GetConfig(); static BibConfig* GetConfig();
BibDataManager* createDataManager(); static BibDataManager* createDataManager();
}; };
......
...@@ -105,9 +105,9 @@ class GridWindow : public vcl::Window ...@@ -105,9 +105,9 @@ class GridWindow : public vcl::Window
void drawHandles(); void drawHandles();
void computeExtremes(); void computeExtremes();
void computeChunk( double fMin, double fMax, double& fChunkOut, double& fMinChunkOut ); static void computeChunk( double fMin, double fMax, double& fChunkOut, double& fMinChunkOut );
void computeNew(); void computeNew();
double interpolate( double x, double* pNodeX, double* pNodeY, int nNodes ); static double interpolate( double x, double* pNodeX, double* pNodeY, int nNodes );
virtual void MouseMove( const MouseEvent& ) SAL_OVERRIDE; virtual void MouseMove( const MouseEvent& ) SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& ) SAL_OVERRIDE; virtual void MouseButtonDown( const MouseEvent& ) SAL_OVERRIDE;
......
...@@ -98,10 +98,10 @@ private: ...@@ -98,10 +98,10 @@ private:
Link maReloadOptionsLink; Link maReloadOptionsLink;
inline oslGenericFunction static inline oslGenericFunction
LoadSymbol( const char* ); LoadSymbol( const char* );
void Init(); static void Init();
void DeInit(); static void DeInit();
SANE_Status ControlOption( int, SANE_Action, void* ); SANE_Status ControlOption( int, SANE_Action, void* );
......
...@@ -47,8 +47,8 @@ protected: ...@@ -47,8 +47,8 @@ protected:
osl::Mutex maProtector; osl::Mutex maProtector;
void* mpData; void* mpData;
void AcquireData(); static void AcquireData();
void ReleaseData(); static void ReleaseData();
public: public:
......
...@@ -176,7 +176,7 @@ public: ...@@ -176,7 +176,7 @@ public:
SfxDispatcher* GetDispatcher(); SfxDispatcher* GetDispatcher();
void SetFrame(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame); void SetFrame(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame);
void InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent) const; static void InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent);
}; };
#endif #endif
......
...@@ -122,9 +122,9 @@ public: ...@@ -122,9 +122,9 @@ public:
static Sequence< OUString > getSupportedServiceNames_Static() throw(); static Sequence< OUString > getSupportedServiceNames_Static() throw();
private: private:
OUString SAL_CALL makeLowerCase(const OUString&, CharClass *); static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
OUString SAL_CALL makeUpperCase(const OUString&, CharClass *); static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
OUString SAL_CALL makeInitCap(const OUString&, CharClass *); static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
}; };
inline OUString Hyphenator::getImplementationName_Static() throw() inline OUString Hyphenator::getImplementationName_Static() throw()
......
...@@ -124,9 +124,9 @@ public: ...@@ -124,9 +124,9 @@ public:
getSupportedServiceNames_Static() throw(); getSupportedServiceNames_Static() throw();
private: private:
OUString SAL_CALL makeLowerCase(const OUString&, CharClass *); static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
OUString SAL_CALL makeUpperCase(const OUString&, CharClass *); static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
OUString SAL_CALL makeInitCap(const OUString&, CharClass *); static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
/* static ::com::sun::star::uno::Reference< /* static ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XLinguServiceManager > xLngSvcMgr; ::com::sun::star::linguistic2::XLinguServiceManager > xLngSvcMgr;
......
...@@ -1046,7 +1046,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt ...@@ -1046,7 +1046,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
StateChanged( nSID, eState, pState, 0 ); StateChanged( nSID, eState, pState, 0 );
} }
void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent) const void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent)
{ {
if (!objSh || !objSh->isTiledRendering()) if (!objSh || !objSh->isTiledRendering())
return; return;
......
...@@ -425,8 +425,8 @@ private: ...@@ -425,8 +425,8 @@ private:
bool isZip(); bool isZip();
void ensureZipIsInitialized(); void ensureZipIsInitialized();
librevenge::RVNGInputStream *createWPXStream(const SotStorageStreamRef &rxStorage); static librevenge::RVNGInputStream *createWPXStream(const SotStorageStreamRef &rxStorage);
librevenge::RVNGInputStream *createWPXStream(const Reference<XInputStream> &rxStream); static librevenge::RVNGInputStream *createWPXStream(const Reference<XInputStream> &rxStream);
private: private:
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > mxStream; ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > mxStream;
......
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