loplugin:unusedfields in desktop
Change-Id: Ic816a7faf4d357d16c13f67533b3b409a531d14c
This commit is contained in:
@@ -65,22 +65,6 @@ enum PackageState { REGISTERED, NOT_REGISTERED, AMBIGUOUS, NOT_AVAILABLE };
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SelectedPackage: public salhelper::SimpleReferenceObject {
|
|
||||||
public:
|
|
||||||
SelectedPackage() {}
|
|
||||||
explicit SelectedPackage( const css::uno::Reference< css::deployment::XPackage> &xPackage)
|
|
||||||
: m_xPackage( xPackage )
|
|
||||||
{}
|
|
||||||
|
|
||||||
virtual ~SelectedPackage();
|
|
||||||
|
|
||||||
private:
|
|
||||||
SelectedPackage(SelectedPackage &) = delete;
|
|
||||||
void operator =(SelectedPackage &) = delete;
|
|
||||||
|
|
||||||
css::uno::Reference< css::deployment::XPackage> m_xPackage;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace dp_gui
|
} // namespace dp_gui
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1620,8 +1620,6 @@ sal_Int16 UpdateRequiredDialogService::execute() throw ( uno::RuntimeException,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SelectedPackage::~SelectedPackage() {}
|
|
||||||
|
|
||||||
} //namespace dp_gui
|
} //namespace dp_gui
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -246,7 +246,6 @@ public:
|
|||||||
class UpdateRequiredDialogService : public ::cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog >
|
class UpdateRequiredDialogService : public ::cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog >
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::uno::XComponentContext > const m_xComponentContext;
|
css::uno::Reference< css::uno::XComponentContext > const m_xComponentContext;
|
||||||
css::uno::Reference< css::awt::XWindow > m_xParent;
|
|
||||||
public:
|
public:
|
||||||
UpdateRequiredDialogService( css::uno::Sequence< css::uno::Any > const & args,
|
UpdateRequiredDialogService( css::uno::Sequence< css::uno::Any > const & args,
|
||||||
css::uno::Reference< css::uno::XComponentContext> const & xComponentContext );
|
css::uno::Reference< css::uno::XComponentContext> const & xComponentContext );
|
||||||
|
@@ -96,8 +96,6 @@ private:
|
|||||||
void removeTempDownloads();
|
void removeTempDownloads();
|
||||||
|
|
||||||
UpdateInstallDialog & m_dialog;
|
UpdateInstallDialog & m_dialog;
|
||||||
cssu::Reference< css::deployment::XUpdateInformationProvider >
|
|
||||||
m_updateInformation;
|
|
||||||
|
|
||||||
// guarded by Application::GetSolarMutex():
|
// guarded by Application::GetSolarMutex():
|
||||||
cssu::Reference< css::task::XAbortChannel > m_abort;
|
cssu::Reference< css::task::XAbortChannel > m_abort;
|
||||||
@@ -208,7 +206,6 @@ UpdateInstallDialog::UpdateInstallDialog(
|
|||||||
"UpdateInstallDialog","desktop/ui/updateinstalldialog.ui"),
|
"UpdateInstallDialog","desktop/ui/updateinstalldialog.ui"),
|
||||||
|
|
||||||
m_thread(new Thread(xCtx, *this, aVecUpdateData)),
|
m_thread(new Thread(xCtx, *this, aVecUpdateData)),
|
||||||
m_xComponentContext(xCtx),
|
|
||||||
m_bError(false),
|
m_bError(false),
|
||||||
m_bNoEntry(true),
|
m_bNoEntry(true),
|
||||||
m_sInstalling(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_INSTALLING)),
|
m_sInstalling(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_INSTALLING)),
|
||||||
|
@@ -90,7 +90,6 @@ private:
|
|||||||
{ return m_xExtensionManager; }
|
{ return m_xExtensionManager; }
|
||||||
|
|
||||||
rtl::Reference< Thread > m_thread;
|
rtl::Reference< Thread > m_thread;
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext;
|
|
||||||
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager;
|
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager;
|
||||||
//Signals that an error occurred during download and installation
|
//Signals that an error occurred during download and installation
|
||||||
bool m_bError;
|
bool m_bError;
|
||||||
|
@@ -75,7 +75,6 @@ protected:
|
|||||||
|
|
||||||
struct LicenseDialogImpl : public ModalDialog
|
struct LicenseDialogImpl : public ModalDialog
|
||||||
{
|
{
|
||||||
cssu::Reference<cssu::XComponentContext> m_xComponentContext;
|
|
||||||
VclPtr<FixedText> m_pFtHead;
|
VclPtr<FixedText> m_pFtHead;
|
||||||
VclPtr<FixedImage> m_pArrow1;
|
VclPtr<FixedImage> m_pArrow1;
|
||||||
VclPtr<FixedImage> m_pArrow2;
|
VclPtr<FixedImage> m_pArrow2;
|
||||||
@@ -95,7 +94,6 @@ struct LicenseDialogImpl : public ModalDialog
|
|||||||
|
|
||||||
LicenseDialogImpl(
|
LicenseDialogImpl(
|
||||||
vcl::Window * pParent,
|
vcl::Window * pParent,
|
||||||
css::uno::Reference< css::uno::XComponentContext > const & xContext,
|
|
||||||
const OUString & sExtensionName,
|
const OUString & sExtensionName,
|
||||||
const OUString & sLicenseText);
|
const OUString & sLicenseText);
|
||||||
virtual ~LicenseDialogImpl() { disposeOnce(); }
|
virtual ~LicenseDialogImpl() { disposeOnce(); }
|
||||||
@@ -204,11 +202,9 @@ void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
|
|||||||
|
|
||||||
LicenseDialogImpl::LicenseDialogImpl(
|
LicenseDialogImpl::LicenseDialogImpl(
|
||||||
vcl::Window * pParent,
|
vcl::Window * pParent,
|
||||||
cssu::Reference< cssu::XComponentContext > const & xContext,
|
|
||||||
const OUString & sExtensionName,
|
const OUString & sExtensionName,
|
||||||
const OUString & sLicenseText)
|
const OUString & sLicenseText)
|
||||||
: ModalDialog(pParent, "LicenseDialog", "desktop/ui/licensedialog.ui")
|
: ModalDialog(pParent, "LicenseDialog", "desktop/ui/licensedialog.ui")
|
||||||
, m_xComponentContext(xContext)
|
|
||||||
, m_bLicenseRead(false)
|
, m_bLicenseRead(false)
|
||||||
{
|
{
|
||||||
get(m_pFtHead, "head");
|
get(m_pFtHead, "head");
|
||||||
@@ -321,11 +317,8 @@ sal_Int16 LicenseDialog::execute() throw (RuntimeException, std::exception)
|
|||||||
|
|
||||||
sal_Int16 LicenseDialog::solar_execute()
|
sal_Int16 LicenseDialog::solar_execute()
|
||||||
{
|
{
|
||||||
VclPtr<LicenseDialogImpl> dlg(
|
ScopedVclPtrInstance<LicenseDialogImpl> dlg(
|
||||||
VclPtr<LicenseDialogImpl>::Create(
|
VCLUnoHelper::GetWindow(m_parent), m_sExtensionName, m_sLicenseText);
|
||||||
|
|
||||||
VCLUnoHelper::GetWindow(m_parent),
|
|
||||||
m_xComponentContext, m_sExtensionName, m_sLicenseText));
|
|
||||||
|
|
||||||
return dlg->Execute();
|
return dlg->Execute();
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,6 @@ class BaseCommandEnv
|
|||||||
css::ucb::XProgressHandler >
|
css::ucb::XProgressHandler >
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
|
||||||
css::uno::Reference< css::task::XInteractionHandler> m_forwardHandler;
|
css::uno::Reference< css::task::XInteractionHandler> m_forwardHandler;
|
||||||
|
|
||||||
void handle_(bool approve, bool abort,
|
void handle_(bool approve, bool abort,
|
||||||
|
@@ -114,8 +114,6 @@ namespace migration
|
|||||||
css::task::XInteractionHandler,
|
css::task::XInteractionHandler,
|
||||||
css::ucb::XProgressHandler >
|
css::ucb::XProgressHandler >
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
|
||||||
css::uno::Reference< css::task::XInteractionHandler> m_forwardHandler;
|
|
||||||
public:
|
public:
|
||||||
virtual ~TmpRepositoryCommandEnv();
|
virtual ~TmpRepositoryCommandEnv();
|
||||||
TmpRepositoryCommandEnv();
|
TmpRepositoryCommandEnv();
|
||||||
|
@@ -29,9 +29,8 @@ using namespace com::sun::star;
|
|||||||
|
|
||||||
namespace desktop
|
namespace desktop
|
||||||
{
|
{
|
||||||
UnxSplashScreen::UnxSplashScreen( const uno::Reference< uno::XComponentContext >& xCtx )
|
UnxSplashScreen::UnxSplashScreen()
|
||||||
: m_xCtx( xCtx ),
|
: m_pOutFd( nullptr )
|
||||||
m_pOutFd( nullptr )
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,14 +142,14 @@ using namespace desktop;
|
|||||||
// get service instance...
|
// get service instance...
|
||||||
static uno::Reference< uno::XInterface > m_xINSTANCE;
|
static uno::Reference< uno::XInterface > m_xINSTANCE;
|
||||||
|
|
||||||
uno::Reference< uno::XInterface > UnxSplash_createInstance(const uno::Reference< uno::XComponentContext > & xCtx ) throw( uno::Exception )
|
uno::Reference< uno::XInterface > UnxSplash_createInstance(const uno::Reference< uno::XComponentContext > & ) throw( uno::Exception )
|
||||||
{
|
{
|
||||||
static osl::Mutex m_aMutex;
|
static osl::Mutex m_aMutex;
|
||||||
if ( !m_xINSTANCE.is() )
|
if ( !m_xINSTANCE.is() )
|
||||||
{
|
{
|
||||||
osl::MutexGuard guard( m_aMutex );
|
osl::MutexGuard guard( m_aMutex );
|
||||||
if ( !m_xINSTANCE.is() )
|
if ( !m_xINSTANCE.is() )
|
||||||
m_xINSTANCE = static_cast<cppu::OWeakObject*>(new UnxSplashScreen( xCtx ));
|
m_xINSTANCE = static_cast<cppu::OWeakObject*>(new UnxSplashScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_xINSTANCE;
|
return m_xINSTANCE;
|
||||||
|
@@ -39,12 +39,11 @@ private:
|
|||||||
static UnxSplashScreen *m_pINSTANCE;
|
static UnxSplashScreen *m_pINSTANCE;
|
||||||
|
|
||||||
static osl::Mutex m_aMutex;
|
static osl::Mutex m_aMutex;
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xCtx;
|
|
||||||
|
|
||||||
FILE *m_pOutFd;
|
FILE *m_pOutFd;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit UnxSplashScreen( const css::uno::Reference< css::uno::XComponentContext >& xCtx );
|
explicit UnxSplashScreen();
|
||||||
|
|
||||||
// XStatusIndicator
|
// XStatusIndicator
|
||||||
virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) throw ( css::uno::RuntimeException, std::exception ) override;
|
virtual void SAL_CALL start( const OUString& aText, sal_Int32 nRange ) throw ( css::uno::RuntimeException, std::exception ) override;
|
||||||
|
@@ -79,8 +79,6 @@ private:
|
|||||||
sal_Int32 m_nNoBorderResizeReact;
|
sal_Int32 m_nNoBorderResizeReact;
|
||||||
sal_Int32 m_nNoResizeReact;
|
sal_Int32 m_nNoResizeReact;
|
||||||
|
|
||||||
css::uno::Reference< css::ui::XDockingAreaAcceptor > m_xCachedDocAreaAcc;
|
|
||||||
|
|
||||||
css::uno::Sequence< css::uno::Any > m_aOutplaceFrameProps;
|
css::uno::Sequence< css::uno::Any > m_aOutplaceFrameProps;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user