summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/ui/misc/DExport.cxx4
-rw-r--r--sc/source/ui/miscdlgs/dataproviderdlg.cxx4
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx3
-rw-r--r--stoc/source/inspect/introspection.cxx3
-rw-r--r--sw/source/uibase/shells/tabsh.cxx3
-rw-r--r--ucb/source/cacher/contentresultsetwrapper.cxx3
-rw-r--r--vcl/inc/pdf/pdfwriter_impl.hxx2
-rw-r--r--writerfilter/source/dmapper/TableData.hxx4
8 files changed, 10 insertions, 16 deletions
diff --git a/dbaccess/source/ui/misc/DExport.cxx b/dbaccess/source/ui/misc/DExport.cxx
index fdc6bc4b3d26..a1e02b8745be 100644
--- a/dbaccess/source/ui/misc/DExport.cxx
+++ b/dbaccess/source/ui/misc/DExport.cxx
@@ -661,10 +661,10 @@ void ODatabaseExport::createRowSet()
bool ODatabaseExport::executeWizard(const OUString& _rTableName, const Any& _aTextColor, const FontDescriptor& _rFont)
{
bool bHaveDefaultTable = !m_sDefaultTableName.isEmpty();
- OUString sTableName( bHaveDefaultTable ? m_sDefaultTableName : _rTableName );
+ const OUString& rTableName(bHaveDefaultTable ? m_sDefaultTableName : _rTableName);
OCopyTableWizard aWizard(
nullptr,
- sTableName,
+ rTableName,
bHaveDefaultTable ? CopyTableOperation::AppendData : CopyTableOperation::CopyDefinitionAndData,
ODatabaseExport::TColumns(m_aDestColumns),
m_vDestVector,
diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
index 83d46d57c5bb..16a6c446647b 100644
--- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx
+++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
@@ -913,9 +913,7 @@ IMPL_LINK_NOARG(ScDataProviderDlg, TransformationSelectHdl, weld::ComboBox&, voi
sc::ExternalDataSource ScDataProviderDlg::getDataSource(ScDocument* pDoc)
{
- OUString aURL = mxEditURL->get_text();
- OUString aProvider = mxProviderList->get_active_text();
- sc::ExternalDataSource aSource(aURL, aProvider, pDoc);
+ sc::ExternalDataSource aSource(mxEditURL->get_text(), mxProviderList->get_active_text(), pDoc);
OUString aID = mxEditID->get_text();
aSource.setID(aID);
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 9304d72471d9..2d066bcfc26b 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -552,8 +552,7 @@ void ScTabViewObj::SheetChanged( bool bSameTabButMoved )
{
sheet::ActivationEvent aEvent;
uno::Reference< sheet::XSpreadsheetView > xView(this);
- uno::Reference< uno::XInterface > xSource(xView, uno::UNO_QUERY);
- aEvent.Source = xSource;
+ aEvent.Source.set(xView, uno::UNO_QUERY);
aEvent.ActiveSheet = new ScTableSheetObj(pDocSh, rViewData.GetTabNo());
// Listener's handler may remove it from the listeners list
for (size_t i = aActivationListeners.size(); i > 0; --i)
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index be39b568002e..eb06b6656830 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -1774,8 +1774,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect(
// Enter in own property array
Property& rProp = rAllPropArray[ rPropCount ];
- OUString aFieldName = xField->getName();
- rProp.Name = aFieldName;
+ rProp.Name = xField->getName();
rProp.Handle = rPropCount;
Type aFieldType( xPropType->getTypeClass(), xPropType->getName() );
rProp.Type = aFieldType;
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 916c4c839485..87df4f059d0d 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -708,11 +708,10 @@ void SwTableShell::Execute(SfxRequest &rReq)
aBoxSet.Get(
RES_BOXATR_FORMAT ).GetValue() ));
- OUString sCurText( rSh.GetTableBoxText() );
pCoreSet->Put( SvxNumberInfoItem( pFormatter,
aBoxSet.Get(
RES_BOXATR_VALUE).GetValue(),
- sCurText, SID_ATTR_NUMBERFORMAT_INFO ));
+ rSh.GetTableBoxText(), SID_ATTR_NUMBERFORMAT_INFO ));
SwWrtShell* pSh = &rSh;
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
diff --git a/ucb/source/cacher/contentresultsetwrapper.cxx b/ucb/source/cacher/contentresultsetwrapper.cxx
index 72388222f12d..d4b32024b9a2 100644
--- a/ucb/source/cacher/contentresultsetwrapper.cxx
+++ b/ucb/source/cacher/contentresultsetwrapper.cxx
@@ -56,8 +56,7 @@ void ContentResultSetWrapper::impl_init_xRowOrigin(std::unique_lock<std::mutex>&
if(m_xRowOrigin.is())
return;
- Reference< XRow > xOrgig( m_xResultSetOrigin, UNO_QUERY );
- m_xRowOrigin = xOrgig;
+ m_xRowOrigin.set(m_xResultSetOrigin, UNO_QUERY);
OSL_ENSURE( m_xRowOrigin.is(), "interface XRow is required" );
}
diff --git a/vcl/inc/pdf/pdfwriter_impl.hxx b/vcl/inc/pdf/pdfwriter_impl.hxx
index ae8754e6cc1a..090f3e090c35 100644
--- a/vcl/inc/pdf/pdfwriter_impl.hxx
+++ b/vcl/inc/pdf/pdfwriter_impl.hxx
@@ -325,7 +325,7 @@ public:
return m_aColorBitmap;
}
- void setOutline(basegfx::B2DPolyPolygon aOutline) { m_aOutline = aOutline; }
+ void setOutline(const basegfx::B2DPolyPolygon& rOutline) { m_aOutline = rOutline; }
const basegfx::B2DPolyPolygon& getOutline() const { return m_aOutline; }
void addCode( sal_Ucs i_cCode )
diff --git a/writerfilter/source/dmapper/TableData.hxx b/writerfilter/source/dmapper/TableData.hxx
index 558fb6946bde..53b99ed7c7fd 100644
--- a/writerfilter/source/dmapper/TableData.hxx
+++ b/writerfilter/source/dmapper/TableData.hxx
@@ -208,7 +208,7 @@ public:
/**
Add properties to the last cell of the row.
*/
- void insertCellProperties(TablePropertyMapPtr pProps)
+ void insertCellProperties(const TablePropertyMapPtr& pProps)
{
if (!mCells.empty())
mCells.back()->insertProperties(pProps);
@@ -376,7 +376,7 @@ public:
@param pProps the properties to add
*/
- void insertCellProperties(TablePropertyMapPtr pProps)
+ void insertCellProperties(const TablePropertyMapPtr& pProps)
{
mpRow->insertCellProperties(pProps);
}