diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 4 | ||||
-rw-r--r-- | vcl/source/font/FeatureParser.cxx | 3 | ||||
-rw-r--r-- | vcl/source/gdi/pdfextoutdevdata.cxx | 3 |
3 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 17e6435c3fc2..f51ce48a505c 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -1771,11 +1771,11 @@ SalInstanceDialog::SalInstanceDialog(::Dialog* pDialog, SalInstanceBuilder* pBui } } -bool SalInstanceDialog::runAsync(std::shared_ptr<weld::DialogController> aOwner, +bool SalInstanceDialog::runAsync(std::shared_ptr<weld::DialogController> const& rxOwner, const std::function<void(sal_Int32)>& rEndDialogFn) { VclAbstractDialog::AsyncContext aCtx; - aCtx.mxOwnerDialogController = aOwner; + aCtx.mxOwnerDialogController = rxOwner; aCtx.maEndDialogFn = rEndDialogFn; VclButtonBox* pActionArea = m_xDialog->get_action_area(); if (pActionArea) diff --git a/vcl/source/font/FeatureParser.cxx b/vcl/source/font/FeatureParser.cxx index 697662032f75..44b7d962429d 100644 --- a/vcl/source/font/FeatureParser.cxx +++ b/vcl/source/font/FeatureParser.cxx @@ -46,8 +46,7 @@ FeatureParser::FeatureParser(std::u16string_view rFontName) } else { - OString sFeature = OUStringToOString(sToken, RTL_TEXTENCODING_ASCII_US); - FeatureSetting aFeature(sFeature); + FeatureSetting aFeature(OUStringToOString(sToken, RTL_TEXTENCODING_ASCII_US)); if (aFeature.m_nTag != 0) m_aFeatures.push_back(aFeature); } diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index c2c838d5db55..c15b917d3420 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -829,8 +829,7 @@ void PDFExtOutDevData::SetAlternateText( const OUString& rText ) void PDFExtOutDevData::CreateControl( const PDFWriter::AnyWidget& rControlType ) { - std::shared_ptr< PDFWriter::AnyWidget > pClone( rControlType.Clone() ); - mpPageSyncData->PushAction( mrOutDev, vcl::CreateControl{ pClone } ); + mpPageSyncData->PushAction(mrOutDev, vcl::CreateControl{ rControlType.Clone() }); } void PDFExtOutDevData::BeginGroup() |