summaryrefslogtreecommitdiff
path: root/scripting/source/provider/BrowseNodeFactoryImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/BrowseNodeFactoryImpl.cxx')
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
index 3e3bf6b57e20..e89452c3c971 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
@@ -215,7 +215,7 @@ private:
{
m_hBNA.reset( new std::unordered_map< OUString, Reference< browse::XBrowseNode > > );
- Sequence< Reference< browse::XBrowseNode > > langNodes =
+ const Sequence< Reference< browse::XBrowseNode > > langNodes =
m_origNode->getChildNodes();
for ( const auto& rLangNode : langNodes )
@@ -230,7 +230,7 @@ private:
xbn.set( rLangNode );
}
- Sequence< Reference< browse::XBrowseNode > > grandchildren =
+ const Sequence< Reference< browse::XBrowseNode > > grandchildren =
xbn->getChildNodes();
for ( const Reference< browse::XBrowseNode >& grandchild : grandchildren )
@@ -262,7 +262,7 @@ namespace
std::vector< Reference< browse::XBrowseNode > > getAllBrowseNodes( const Reference< XComponentContext >& xCtx )
{
- Sequence< OUString > openDocs =
+ const Sequence< OUString > openDocs =
MiscUtils::allOpenTDocUrls( xCtx );
Reference< provider::XScriptProviderFactory > xFac;
@@ -395,7 +395,7 @@ public:
if ( hasChildNodes() )
{
vXBrowseNodes aVNodes;
- Sequence < Reference< browse::XBrowseNode > > nodes =
+ const Sequence < Reference< browse::XBrowseNode > > nodes =
m_xWrappedBrowseNode->getChildNodes();
for ( const Reference< browse::XBrowseNode >& xBrowseNode : nodes )
{