summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/writer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 09:51:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 13:28:41 +0200
commit242e1c42d975b2d8729cd150cf104b177033760a (patch)
treea44512de3ad3cb5a59cf3b658752dfe154ba5aa0 /connectivity/source/drivers/writer
parentloplugin:referencecasting in avmedia..basic (diff)
downloadcore-242e1c42d975b2d8729cd150cf104b177033760a.tar.gz
core-242e1c42d975b2d8729cd150cf104b177033760a.zip
loplugin:referencecasting in comphelper..connectivity
Change-Id: I21896885c29e9ab58ebab17b59f1480c6a06fb38 Reviewed-on: https://gerrit.libreoffice.org/75936 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/writer')
-rw-r--r--connectivity/source/drivers/writer/WTable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/writer/WTable.cxx b/connectivity/source/drivers/writer/WTable.cxx
index 80290bd5dde5..82aea711a4a9 100644
--- a/connectivity/source/drivers/writer/WTable.cxx
+++ b/connectivity/source/drivers/writer/WTable.cxx
@@ -49,11 +49,11 @@ using namespace ::com::sun::star;
static void lcl_GetDataArea(const uno::Reference<text::XTextTable>& xTable, sal_Int32& rColumnCount,
sal_Int32& rRowCount)
{
- uno::Reference<container::XIndexAccess> xColumns(xTable->getColumns(), uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xColumns = xTable->getColumns();
if (xColumns.is())
rColumnCount = xColumns->getCount();
- uno::Reference<container::XIndexAccess> xRows(xTable->getRows(), uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xRows = xTable->getRows();
if (xRows.is())
rRowCount = xRows->getCount() - 1; // first row (headers) is not counted
}