summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-01 09:05:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-01 15:26:10 +0000
commit0e6544903bc572d1d6051cbb89a4cfb727401159 (patch)
tree5090895789c763971457ef11fc8de55aed77d019 /filter
parentb5db48ada113206ac090e4a08f2ae211859103ed (diff)
no need to be so verbose in constructing uno::Reference
Change-Id: I187a26e200e9ecaff2adaf53a2ba3f6e87346030 Reviewed-on: https://gerrit.libreoffice.org/19724 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/filtercache.cxx6
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index a26f5e0540ad..65cba521b004 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -636,9 +636,9 @@ void FilterCache::impl_flushByList(const css::uno::Reference< css::container::XN
const OUStringList& lItems)
throw(css::uno::Exception)
{
- css::uno::Reference< css::container::XNameContainer > xAddRemoveSet = css::uno::Reference< css::container::XNameContainer > (xSet, css::uno::UNO_QUERY);
- css::uno::Reference< css::container::XNameReplace > xReplaceeSet = css::uno::Reference< css::container::XNameReplace > (xSet, css::uno::UNO_QUERY);
- css::uno::Reference< css::lang::XSingleServiceFactory > xFactory = css::uno::Reference< css::lang::XSingleServiceFactory >(xSet, css::uno::UNO_QUERY);
+ css::uno::Reference< css::container::XNameContainer > xAddRemoveSet(xSet, css::uno::UNO_QUERY);
+ css::uno::Reference< css::container::XNameReplace > xReplaceeSet(xSet, css::uno::UNO_QUERY);
+ css::uno::Reference< css::lang::XSingleServiceFactory > xFactory(xSet, css::uno::UNO_QUERY);
for (OUStringList::const_iterator pIt = lItems.begin();
pIt != lItems.end() ;
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 6a333298f231..b82406e16256 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -632,7 +632,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi
{
try
{
- Reference< XFlushable > xFlushable = Reference< XFlushable >::query( mxTypeDetection );
+ Reference< XFlushable > xFlushable( mxTypeDetection, UNO_QUERY );
if( xFlushable.is() )
xFlushable->flush();
}