summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 09:08:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 07:54:20 +0000
commit3fea7ac94b986ba5e3632d1bbb383c65ced79f1a (patch)
tree4f882b31963c0fdf87abc373ecdeb57444529048 /svx
parent2db81e733610331bc0f84d72f7e49db9af92949c (diff)
loplugin:unusedfields
Change-Id: I96634c18ba6600f8f7d5d04a162dcd7e1e312923 Reviewed-on: https://gerrit.libreoffice.org/30474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/SafeModeUI.cxx13
-rw-r--r--svx/source/dialog/dlgctrl.cxx10
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx3
-rw-r--r--svx/source/sidebar/nbdtmg.cxx2
-rw-r--r--svx/source/xml/xmlxtexp.cxx3
5 files changed, 9 insertions, 22 deletions
diff --git a/svx/source/dialog/SafeModeUI.cxx b/svx/source/dialog/SafeModeUI.cxx
index 15da084119f0..a0afd1dfce2b 100644
--- a/svx/source/dialog/SafeModeUI.cxx
+++ b/svx/source/dialog/SafeModeUI.cxx
@@ -24,7 +24,7 @@ class SafeModeUI : public ::cppu::WeakImplHelper< css::lang::XServiceInfo,
css::frame::XSynchronousDispatch > // => XDispatch!
{
public:
- explicit SafeModeUI(const css::uno::Reference< css::uno::XComponentContext >& xContext);
+ SafeModeUI();
virtual ~SafeModeUI() override;
// css.lang.XServiceInfo
@@ -41,15 +41,10 @@ public:
virtual css::uno::Any SAL_CALL dispatchWithReturnValue(const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
throw(css::uno::RuntimeException, std::exception) override;
-
-private:
- css::uno::Reference< css::uno::XComponentContext > mxContext;
};
-SafeModeUI::SafeModeUI(const css::uno::Reference<css::uno::XComponentContext>& xContext):
- mxContext(xContext)
+SafeModeUI::SafeModeUI()
{
-
}
SafeModeUI::~SafeModeUI()
@@ -90,10 +85,10 @@ css::uno::Any SAL_CALL SafeModeUI::dispatchWithReturnValue(const css::util::URL&
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_svx_SafeModeUI_get_implementation(
- css::uno::XComponentContext *context,
+ css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new SafeModeUI(context));
+ return cppu::acquire(new SafeModeUI);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 30ead1213a10..740033df05e0 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1152,8 +1152,7 @@ void ColorLB::Modify( const XColorEntry& rEntry, sal_Int32 nPos )
// Fills the listbox (provisional) with strings
HatchingLB::HatchingLB( vcl::Window* pParent, WinBits nWinStyle)
-: ListBox( pParent, nWinStyle ),
- mpList ( nullptr )
+: ListBox( pParent, nWinStyle )
{
SetEdgeBlending(true);
}
@@ -1193,8 +1192,7 @@ void FillAttrLB::Fill( const XHatchListRef &pList )
// Fills the listbox (provisional) with strings
GradientLB::GradientLB( vcl::Window* pParent, WinBits aWB)
-: ListBox( pParent, aWB ),
- mpList(nullptr)
+: ListBox( pParent, aWB )
{
SetEdgeBlending(true);
}
@@ -1234,9 +1232,7 @@ void FillAttrLB::Fill( const XGradientListRef &pList )
// BitmapLB Constructor
BitmapLB::BitmapLB( vcl::Window* pParent, WinBits aWB)
-: ListBox( pParent, aWB ),
- maBitmapEx(),
- mpList(nullptr)
+: ListBox( pParent, aWB )
{
SetEdgeBlending(true);
}
diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
index 3de9336d17a7..5f90b223781a 100644
--- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
+++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
@@ -92,8 +92,7 @@ AreaPropertyPanelBase::AreaPropertyPanelBase(
maImgSquare(SVX_RES(IMG_SQUARE)),
maImgLinear(SVX_RES(IMG_LINEAR)),
mpFloatTransparenceItem(),
- mpTransparanceItem(),
- mxFrame(rxFrame)
+ mpTransparanceItem()
{
get(mpColorTextFT, "filllabel");
get(mpLbFillType, "fillstyle");
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index 7614dd8f11d9..e1bd4914ed78 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -260,7 +260,7 @@ void BulletsTypeMgr::Init()
for (sal_uInt16 i=0;i<DEFAULT_BULLET_TYPES;i++)
{
- pActualBullets[i] = new BulletsSettings_Impl(NBType::Bullets);
+ pActualBullets[i] = new BulletsSettings_Impl;
pActualBullets[i]->cBulletChar = aDefaultBulletTypes[i];
pActualBullets[i]->aFont =rActBulletFont;
pActualBullets[i]->sDescription = SVX_RESSTR( RID_SVXSTR_BULLET_DESCRIPTION_0 + i );
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index e7a7962b2f60..7e847fa675a6 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -136,9 +136,6 @@ public:
virtual ~SvxXMLBitmapEntryExporter() override;
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) override;
-
-private:
- XMLImageStyle maImageStyle;
};