summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 08:22:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 14:46:53 +0200
commit04112bce506c60254cb1cb8536f942c8adb5c7d6 (patch)
tree43b63df6f5b5eeb89abe70094b415ddfed152a9a /forms/source/component
parent8feca893a902abe3c238403f0a1f59a24fb24926 (diff)
loplugin:sequentialassign in filter..fpicker
Change-Id: I4ba0e1e982897bd570612f6cda8ba1e6a9fa5dbd Reviewed-on: https://gerrit.libreoffice.org/70700 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/EventThread.cxx4
-rw-r--r--forms/source/component/Filter.cxx3
2 files changed, 2 insertions, 5 deletions
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx
index 84b9b4798b83..357888111991 100644
--- a/forms/source/component/EventThread.cxx
+++ b/forms/source/component/EventThread.cxx
@@ -57,9 +57,7 @@ OComponentEventThread::~OComponentEventThread()
Any SAL_CALL OComponentEventThread::queryInterface(const Type& _rType)
{
- Any aReturn;
-
- aReturn = OWeakObject::queryInterface(_rType);
+ Any aReturn = OWeakObject::queryInterface(_rType);
if (!aReturn.hasValue())
aReturn = ::cppu::queryInterface(_rType,
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index fb56cbdd3c8a..ccaa7f209687 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -519,8 +519,7 @@ namespace frm
if ( m_aText != aText )
{
// check the text with the SQL-Parser
- OUString aNewText(aText);
- aNewText = aNewText.trim();
+ OUString aNewText = aText.trim();
if ( !aNewText.isEmpty() )
{
::dbtools::OPredicateInputController aPredicateInput( m_xContext, m_xConnection, getParseContext() );