summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/recentdocsview.cxx2
-rw-r--r--sfx2/source/control/shell.cxx2
-rw-r--r--sfx2/source/control/unoctitm.cxx3
3 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 96dbd90b1fb3..414f1236ce9f 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -235,7 +235,7 @@ void RecentDocsView::Reload()
Sequence< Sequence< PropertyValue > > aHistoryList = SvtHistoryOptions().GetList( ePICKLIST );
for ( int i = 0; i < aHistoryList.getLength(); i++ )
{
- Sequence< PropertyValue >& rRecentEntry = aHistoryList[i];
+ const Sequence< PropertyValue >& rRecentEntry = aHistoryList[i];
OUString aURL;
OUString aTitle;
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx
index abdb828d7721..ca312f61a0d9 100644
--- a/sfx2/source/control/shell.cxx
+++ b/sfx2/source/control/shell.cxx
@@ -601,7 +601,7 @@ void SfxShell::VerbExec(SfxRequest& rReq)
return;
bool bReadOnly = pViewShell->GetObjectShell()->IsReadOnly();
- css::uno::Sequence < css::embed::VerbDescriptor > aList = pViewShell->GetVerbs();
+ const css::uno::Sequence < css::embed::VerbDescriptor > aList = pViewShell->GetVerbs();
sal_Int32 nVerb = 0;
for (const auto& rVerb : aList)
{
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 9588ff61d551..6908f64aaa61 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -958,7 +958,8 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
InterceptLOKStateChangeEvent(pDispatcher->GetFrame(), aEvent, pState);
}
- for (const OUString& rName: pDispatch->GetListeners().getContainedTypes())
+ const css::uno::Sequence<OUString> aContainedTypes = pDispatch->GetListeners().getContainedTypes();
+ for (const OUString& rName: aContainedTypes)
{
if (rName == aDispatchURL.Main || rName == aDispatchURL.Complete)
sendStatusChanged(rName, aEvent);