summaryrefslogtreecommitdiff
path: root/svx/source/table/tablelayouter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-10 10:13:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-13 08:15:27 +0200
commita361231b1363d072d737e9b1d411b71aa9550d84 (patch)
tree08641fe2af10c1f22c7fd58e62f99b6dbe301c62 /svx/source/table/tablelayouter.cxx
parentce76026231d9536d2025a1e69f435bcbf39fe4f8 (diff)
fix wrong SET/QUERY flags passed to uno::Reference
By creating deleted methods for the wrong calls. Avoids the compiler needing to construct a temporary Change-Id: I3b8c648d6bb22d22827bf74f21ea5a2a17fc0f6a Reviewed-on: https://gerrit.libreoffice.org/72103 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/table/tablelayouter.cxx')
-rw-r--r--svx/source/table/tablelayouter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx
index e1a89ddce186..31f11e2e083a 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -561,7 +561,7 @@ void TableLayouter::LayoutTableWidth( tools::Rectangle& rArea, bool bFit )
if( sal::static_int_cast< sal_Int32 >( maColumns.size() ) != nColCount )
maColumns.resize( nColCount );
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
// first calculate current width and initial minimum width per column,
// merged cells will be counted later
@@ -1090,7 +1090,7 @@ void TableLayouter::DistributeColumns( ::tools::Rectangle& rArea,
if( mxTable.is() ) try
{
const sal_Int32 nColCount = getColumnCount();
- Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_QUERY_THROW );
+ Reference< XTableColumns > xCols( mxTable->getColumns(), UNO_SET_THROW );
const Size aSize(0xffffff, 0xffffff);
//special case - optimize a single column
@@ -1184,7 +1184,7 @@ void TableLayouter::DistributeRows( ::tools::Rectangle& rArea,
if( mxTable.is() ) try
{
const sal_Int32 nRowCount = mxTable->getRowCount();
- Reference< XTableRows > xRows( mxTable->getRows(), UNO_QUERY_THROW );
+ Reference< XTableRows > xRows( mxTable->getRows(), UNO_SET_THROW );
sal_Int32 nMinHeight = 0;
//special case - minimize a single row