summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 10:22:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-22 11:12:00 +0100
commitb1facbf894a9870f501049409effa937a4ff3488 (patch)
tree2679cd1802ed8557f53ac4e436a4ae2e1e052f82 /svx/source/form
parentf7acbfe2322477b25e5a21b414fd5f5e129eafb1 (diff)
loplugin:unusedfields in svx
Change-Id: I9f6a21066224c449d3fcc8a0d97cb32dae0a65f6 Reviewed-on: https://gerrit.libreoffice.org/68193 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/dataaccessdescriptor.cxx11
-rw-r--r--svx/source/form/sqlparserclient.cxx1
2 files changed, 1 insertions, 11 deletions
diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx
index 04c9976d61ee..09cf6eee3c8b 100644
--- a/svx/source/form/dataaccessdescriptor.cxx
+++ b/svx/source/form/dataaccessdescriptor.cxx
@@ -44,7 +44,6 @@ namespace svx
typedef ::std::map< DataAccessDescriptorProperty, Any > DescriptorValues;
DescriptorValues m_aValues;
Sequence< PropertyValue > m_aAsSequence;
- Reference< XPropertySet > m_xAsSet;
typedef ::std::map< OUString, DataAccessDescriptorProperty > MapString2PropertyEntry;
@@ -85,8 +84,6 @@ namespace svx
,m_bSequenceOutOfDate( _rSource.m_bSequenceOutOfDate )
,m_aValues( _rSource.m_aValues )
{
- if (!m_bSetOutOfDate)
- m_xAsSet = _rSource.m_xAsSet;
if (!m_bSequenceOutOfDate)
m_aAsSequence = _rSource.m_aAsSequence;
}
@@ -150,13 +147,7 @@ namespace svx
}
bool bValidPropsOnly = buildFrom(aValues);
- if (bValidPropsOnly)
- {
- m_xAsSet = _rxValues;
- m_bSetOutOfDate = false;
- }
- else
- m_bSetOutOfDate = true;
+ m_bSetOutOfDate = !bValidPropsOnly;
return bValidPropsOnly;
}
diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx
index 6bc957270b92..f1cd230a8e0d 100644
--- a/svx/source/form/sqlparserclient.cxx
+++ b/svx/source/form/sqlparserclient.cxx
@@ -34,7 +34,6 @@ namespace svxform
OSQLParserClient::OSQLParserClient(const Reference< XComponentContext >& rxContext)
: m_pParser(new OSQLParser(rxContext, getParseContext()))
{
- m_xContext = rxContext;
}
std::unique_ptr< ::connectivity::OSQLParseNode > OSQLParserClient::predicateTree(