summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postprocess/qa/services.cxx5
-rw-r--r--pyuno/source/module/pyuno_struct.cxx3
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx2
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx4
-rw-r--r--reportdesign/source/ui/inspection/metadata.cxx2
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
6 files changed, 10 insertions, 8 deletions
diff --git a/postprocess/qa/services.cxx b/postprocess/qa/services.cxx
index 321432871ddf..a807a037e80e 100644
--- a/postprocess/qa/services.cxx
+++ b/postprocess/qa/services.cxx
@@ -106,7 +106,8 @@ void addService(
if (!allServices->insert(service).second) {
return;
}
- for (auto const & serv: service->getMandatoryServices()) {
+ const auto aMandatoryServices = service->getMandatoryServices();
+ for (auto const & serv : aMandatoryServices) {
addService(serv, allServices);
}
}
@@ -400,7 +401,7 @@ void Test::createInstance(
+ msg(name) + "\" reports wrong implementation name")
.getStr()),
expImpl, info->getImplementationName());
- css::uno::Sequence<OUString> servs(info->getSupportedServiceNames());
+ const css::uno::Sequence<OUString> servs(info->getSupportedServiceNames());
CPPUNIT_ASSERT_MESSAGE(
(OString(
"instantiating \"" + msg(implementationName) + "\" via \""
diff --git a/pyuno/source/module/pyuno_struct.cxx b/pyuno/source/module/pyuno_struct.cxx
index 9ad9439318ce..64dc11499f6b 100644
--- a/pyuno/source/module/pyuno_struct.cxx
+++ b/pyuno/source/module/pyuno_struct.cxx
@@ -105,7 +105,8 @@ static PyObject* PyUNOStruct_dir( PyObject *self )
try
{
member_list = PyList_New( 0 );
- for( const auto& aMember : me->members->xInvocation->getMemberNames() )
+ const css::uno::Sequence<OUString> aMemberNames = me->members->xInvocation->getMemberNames();
+ for( const auto& aMember : aMemberNames )
{
// setitem steals a reference
PyList_Append( member_list, ustring2PyString( aMember ).getAcquired() );
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index dcb0fb6eb1d4..1396c93ebb2e 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -2475,7 +2475,7 @@ OUString OReportDefinition::getDocumentBaseURL() const
::osl::MutexGuard aGuard(m_aMutex);
::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed);
- for (beans::PropertyValue const& it : m_pImpl->m_aArgs)
+ for (beans::PropertyValue const& it : std::as_const(m_pImpl->m_aArgs))
{
if (it.Name == "DocumentBaseURL")
return it.Value.get<OUString>();
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index f6135f5307f2..37631941ce21 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -803,11 +803,11 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const
}
else
{
- for (auto const& it : m_aFieldNames)
+ for (auto const& it : std::as_const(m_aFieldNames))
{
xListControl->appendListEntry(it);
}
- for (auto const& it : m_aParamNames)
+ for (auto const& it : std::as_const(m_aParamNames))
{
xListControl->appendListEntry(it);
}
diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx
index db8ac3eb494f..14e4a3088871 100644
--- a/reportdesign/source/ui/inspection/metadata.cxx
+++ b/reportdesign/source/ui/inspection/metadata.cxx
@@ -226,7 +226,7 @@ namespace rptui
void OPropertyInfoService::getExcludeProperties(::std::vector< beans::Property >& _rExcludeProperties,const css::uno::Reference< css::inspection::XPropertyHandler >& _xFormComponentHandler)
{
- uno::Sequence< beans::Property > aProps = _xFormComponentHandler->getSupportedProperties();
+ const uno::Sequence< beans::Property > aProps = _xFormComponentHandler->getSupportedProperties();
static const OUStringLiteral pExcludeProperties[] =
{
"Enabled",
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index 47afcfe630fe..f81db3a9a4bf 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -1227,7 +1227,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe
aNewPos.setY( 0 );
Point aPrevious;
- for (beans::NamedValue const & namedVal : aAllreadyCopiedObjects)
+ for (beans::NamedValue const & namedVal : std::as_const(aAllreadyCopiedObjects))
{
uno::Sequence< uno::Reference<report::XReportComponent> > aClones;
namedVal.Value >>= aClones;