summaryrefslogtreecommitdiff
path: root/forms/source/xforms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-25 10:24:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-27 07:34:52 +0100
commit19240f625f8bd7b772481abc8e678d7b0fadd921 (patch)
treedf98eb1d1d2bf11179aea13de58aa38548458b9d /forms/source/xforms
parent60c7725a20ff0d77e3025ed60608f57d46e50b58 (diff)
loplugin:unusedfields look for classes where we can make all the..
fields private Change-Id: Id3c6b123f06ab5dcf87628de4c347626110d2d27 Reviewed-on: https://gerrit.libreoffice.org/68302 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/xforms')
-rw-r--r--forms/source/xforms/NameContainer.hxx2
-rw-r--r--forms/source/xforms/datatypes.hxx2
-rw-r--r--forms/source/xforms/xformsevent.hxx2
3 files changed, 2 insertions, 4 deletions
diff --git a/forms/source/xforms/NameContainer.hxx b/forms/source/xforms/NameContainer.hxx
index 07656745f006..8a7a89e445c1 100644
--- a/forms/source/xforms/NameContainer.hxx
+++ b/forms/source/xforms/NameContainer.hxx
@@ -40,10 +40,10 @@ typedef cppu::WeakImplHelper<
template<class T>
class NameContainer : public NameContainer_t
{
-protected:
typedef std::map<OUString,T> map_t;
map_t maItems;
+protected:
typename map_t::const_iterator findItem( const OUString& rName )
{
return maItems.find( rName );
diff --git a/forms/source/xforms/datatypes.hxx b/forms/source/xforms/datatypes.hxx
index fe1db2618442..894b8dc5bd0b 100644
--- a/forms/source/xforms/datatypes.hxx
+++ b/forms/source/xforms/datatypes.hxx
@@ -257,7 +257,6 @@ namespace xforms
typedef ODerivedDataType< OStringType > OStringType_Base;
class OStringType :public OStringType_Base
{
- protected:
// <properties>
css::uno::Any m_aLength;
css::uno::Any m_aMinLength;
@@ -282,7 +281,6 @@ namespace xforms
typedef ODerivedDataType< ODecimalType, OValueLimitedType< double > > ODecimalType_Base;
class ODecimalType : public ODecimalType_Base
{
- protected:
css::uno::Any m_aTotalDigits;
css::uno::Any m_aFractionDigits;
diff --git a/forms/source/xforms/xformsevent.hxx b/forms/source/xforms/xformsevent.hxx
index d9d03d385a8a..df4f5bcd20da 100644
--- a/forms/source/xforms/xformsevent.hxx
+++ b/forms/source/xforms/xformsevent.hxx
@@ -60,7 +60,7 @@ class XFormsEventConcrete : public cppu::WeakImplHelper< XFormsEvent > {
sal_Bool canBubbleArg,
sal_Bool cancelableArg) override;
- protected:
+ private:
OUString m_eventType;
bool m_bubbles;