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

loplugin:staticmethods

Change-Id: Id7fc12bc61c6e803f45cc60556d9cf54ac2e529f
üst 79ed057b
......@@ -79,7 +79,7 @@ private:
bool bFillBox;
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 ClearBox();
......
......@@ -311,7 +311,7 @@ private:
void CheckCompileBasic();
bool BasicExecute();
void GoOnTop();
static void GoOnTop();
sal_Int32 FormatAndPrint( Printer* pPrinter, sal_Int32 nPage = -1 );
SbModuleRef XModule();
......
......@@ -1346,7 +1346,7 @@ sal_Int32 DialogWindow::countPages( Printer* )
void DialogWindow::printPage( sal_Int32 nPage, Printer* pPrinter )
{
pEditor->printPage( nPage, pPrinter, CreateQualifiedName() );
DlgEditor::printPage( nPage, pPrinter, CreateQualifiedName() );
}
void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt )
......
......@@ -225,7 +225,7 @@ public:
EntryDescriptor GetEntryDescriptor( SvTreeListEntry* pEntry );
ItemType ConvertType (EntryType eType);
static ItemType ConvertType (EntryType eType);
bool IsValidEntry( SvTreeListEntry* pEntry );
SvTreeListEntry* AddEntry(
......@@ -236,8 +236,8 @@ public:
void RemoveEntry (SvTreeListEntry*);
void RemoveEntry (ScriptDocument const&);
OUString GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation ) const;
void GetRootEntryBitmaps( const ScriptDocument& rDocument, Image& rImage );
OUString GetRootEntryName( const ScriptDocument& rDocument, LibraryLocation eLocation ) const;
static void GetRootEntryBitmaps( const ScriptDocument& rDocument, Image& rImage );
void SetCurrentEntry (EntryDescriptor&);
......
......@@ -79,7 +79,7 @@ private:
void EnableButton( Button& rButton, bool bEnable );
OUString GetInfo( SbxVariable* pVar );
static OUString GetInfo( SbxVariable* pVar );
void StoreMacroDescription();
void RestoreMacroDescription();
......
......@@ -695,7 +695,7 @@ IMPL_LINK( ObjectPage, ButtonHdl, Button *, pButton )
aModName = aModName.getToken( 0, ' ', nIndex );
}
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 );
}
}
......@@ -876,7 +876,7 @@ void ObjectPage::DeleteCurrent()
m_pBasicBox->Select( m_pBasicBox->GetCurEntry() );
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,
SfxCallMode::SYNCHRON, &aSbxItem, 0L );
}
......
......@@ -132,13 +132,13 @@ namespace basctl
virtual bool includeDocument( const docs::DocumentDescriptor& _rDocument ) const SAL_OVERRIDE;
private:
bool impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument ) const;
static bool impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument );
private:
bool m_bFilterInvisible;
};
bool FilterDocuments::impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument ) const
bool FilterDocuments::impl_isDocumentVisible_nothrow( const docs::DocumentDescriptor& _rDocument )
{
try
{
......
......@@ -28,7 +28,7 @@ namespace basctl
class SIDEModel : public SfxBaseModel,
public com::sun::star::lang::XServiceInfo
{
void notImplemented() throw ( ::com::sun::star::io::IOException );
static void notImplemented() throw ( ::com::sun::star::io::IOException );
public:
SIDEModel( SfxObjectShell *pObjSh = 0 );
virtual ~SIDEModel();
......
......@@ -96,7 +96,7 @@ private:
void CheckWindows();
void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName, bool bDestroy );
void UpdateWindows();
void InvalidateBasicIDESlots();
static void InvalidateBasicIDESlots();
void StoreAllWindowData( bool bPersistent = true );
void SetMDITitle();
void EnableScrollbars( bool bEnable );
......
......@@ -103,7 +103,7 @@ public:
private:
DECL_LINK(MarkTimeout, void *);
void Print( Printer* pPrinter, const OUString& rTitle );
static void Print( Printer* pPrinter, const OUString& rTitle );
private:
ScrollBar* pHScroll;
......@@ -202,7 +202,7 @@ public:
void ShowProperties();
void UpdatePropertyBrowserDelayed();
void printPage( sal_Int32 nPage, Printer* pPrinter, const OUString& );
static void printPage( sal_Int32 nPage, Printer* pPrinter, const OUString& );
bool AdjustPageSize();
......
......@@ -39,7 +39,7 @@ private:
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > m_SeqData;
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:
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:
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 );
void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >& _rObjectSeq );
......@@ -69,7 +69,7 @@ protected:
void implSetNewObject(
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);
public:
......
......@@ -101,7 +101,7 @@ class BibConfig : public utl::ConfigItem
OUString aColumnDefaults[COLUMN_COUNT];
com::sun::star::uno::Sequence<OUString> GetPropertyNames();
static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
virtual void ImplCommit() SAL_OVERRIDE;
......
......@@ -38,7 +38,7 @@ class BibModul
ResMgr* GetResMgr(){return pResMgr;}
static BibConfig* GetConfig();
BibDataManager* createDataManager();
static BibDataManager* createDataManager();
};
......
......@@ -105,9 +105,9 @@ class GridWindow : public vcl::Window
void drawHandles();
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();
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 MouseButtonDown( const MouseEvent& ) SAL_OVERRIDE;
......
......@@ -98,10 +98,10 @@ private:
Link maReloadOptionsLink;
inline oslGenericFunction
static inline oslGenericFunction
LoadSymbol( const char* );
void Init();
void DeInit();
static void Init();
static void DeInit();
SANE_Status ControlOption( int, SANE_Action, void* );
......
......@@ -47,8 +47,8 @@ protected:
osl::Mutex maProtector;
void* mpData;
void AcquireData();
void ReleaseData();
static void AcquireData();
static void ReleaseData();
public:
......
......@@ -176,7 +176,7 @@ public:
SfxDispatcher* GetDispatcher();
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
......
......@@ -122,9 +122,9 @@ public:
static Sequence< OUString > getSupportedServiceNames_Static() throw();
private:
OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
};
inline OUString Hyphenator::getImplementationName_Static() throw()
......
......@@ -124,9 +124,9 @@ public:
getSupportedServiceNames_Static() throw();
private:
OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *);
static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *);
static OUString SAL_CALL makeInitCap(const OUString&, CharClass *);
/* static ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XLinguServiceManager > xLngSvcMgr;
......
......@@ -1046,7 +1046,7 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
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())
return;
......
......@@ -425,8 +425,8 @@ private:
bool isZip();
void ensureZipIsInitialized();
librevenge::RVNGInputStream *createWPXStream(const SotStorageStreamRef &rxStorage);
librevenge::RVNGInputStream *createWPXStream(const Reference<XInputStream> &rxStream);
static librevenge::RVNGInputStream *createWPXStream(const SotStorageStreamRef &rxStorage);
static librevenge::RVNGInputStream *createWPXStream(const Reference<XInputStream> &rxStream);
private:
::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