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