[Libreoffice-commits] core.git: ucb/source uui/source writerfilter/source xmlhelp/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 24 12:03:00 UTC 2019


 ucb/source/ucp/file/filrow.cxx                        |    2 +-
 uui/source/iahndl-authentication.cxx                  |    4 ++--
 uui/source/iahndl.hxx                                 |    4 ++--
 writerfilter/source/dmapper/PropertyMap.cxx           |    2 +-
 writerfilter/source/dmapper/PropertyMap.hxx           |    2 +-
 writerfilter/source/rtftok/rtfdocumentimpl.cxx        |    4 ++--
 writerfilter/source/rtftok/rtfdocumentimpl.hxx        |    2 +-
 xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx |    2 +-
 xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx |    2 +-
 9 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 6239993d0da8e71af15428f502c364e932591bd6
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jan 24 09:30:42 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jan 24 13:02:31 2019 +0100

    loplugin:constparams in ucb..xmlhelp
    
    Change-Id: I3c1e0bfbba1a1849075500882133aac3899de5c8
    Reviewed-on: https://gerrit.libreoffice.org/66834
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx
index d8cf74af53b3..a6156823bbf0 100644
--- a/ucb/source/ucp/file/filrow.cxx
+++ b/ucb/source/ucp/file/filrow.cxx
@@ -39,7 +39,7 @@ using namespace css::uno;
 // Function for TypeConverting
 
 template< class _type_ >
-static bool convert( TaskManager* pShell,
+static bool convert( TaskManager const * pShell,
                   uno::Reference< script::XTypeConverter >& xConverter,
                   uno::Any& rValue,
                   _type_& aReturn  )
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index d151a36138e7..6103f876e209 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -725,8 +725,8 @@ UUIInteractionHelper::handlePasswordRequest(
 }
 
 void
-UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions,
-        OUString & url,
+UUIInteractionHelper::handleAuthFallbackRequest( const OUString & instructions,
+        const OUString & url,
         uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & rContinuations )
 {
     uno::Reference<awt::XWindow> xParent = getParentXWindow();
diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx
index 9614e4aa908c..4feb98d3fa5d 100644
--- a/uui/source/iahndl.hxx
+++ b/uui/source/iahndl.hxx
@@ -237,8 +237,8 @@ private:
 
     void
     handleAuthFallbackRequest(
-            OUString & instructions,
-            OUString & url,
+            const OUString & instructions,
+            const OUString & url,
             css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > const & rContinuations );
 };
 
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index fe3378e43424..ea4b40e28438 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -682,7 +682,7 @@ void SectionPropertyMap::DontBalanceTextColumns()
     }
 }
 
-void SectionPropertyMap::ApplySectionProperties( uno::Reference< beans::XPropertySet >& xSection, DomainMapper_Impl& rDM_Impl )
+void SectionPropertyMap::ApplySectionProperties( const uno::Reference< beans::XPropertySet >& xSection, DomainMapper_Impl& rDM_Impl )
 {
     try
     {
diff --git a/writerfilter/source/dmapper/PropertyMap.hxx b/writerfilter/source/dmapper/PropertyMap.hxx
index c6bd210b6c97..69f5a905cb0c 100644
--- a/writerfilter/source/dmapper/PropertyMap.hxx
+++ b/writerfilter/source/dmapper/PropertyMap.hxx
@@ -263,7 +263,7 @@ private:
     void DontBalanceTextColumns();
 
     /// Apply section-specific properties: only valid to use after PageStyle has been determined by InheritOrFinalizePageStyles
-    void ApplySectionProperties( css::uno::Reference< css::beans::XPropertySet >& xSection, DomainMapper_Impl& rDM_Impl );
+    void ApplySectionProperties( const css::uno::Reference< css::beans::XPropertySet >& xSection, DomainMapper_Impl& rDM_Impl );
 
     /// Check if document is protected. If so, ensure a section exists, and apply its protected value.
     void ApplyProtectionProperties( css::uno::Reference< css::beans::XPropertySet >& xSection, DomainMapper_Impl& rDM_Impl );
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 1cc8230f6c7c..41b638b5acc4 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -191,7 +191,7 @@ OString DTTM22OString(long nDTTM)
     return DateTimeToOString(msfilter::util::DTTM2DateTime(nDTTM));
 }
 
-static RTFSprms lcl_getBookmarkProperties(int nPos, OUString& rString)
+static RTFSprms lcl_getBookmarkProperties(int nPos, const OUString& rString)
 {
     RTFSprms aAttributes;
     auto pPos = new RTFValue(nPos);
@@ -458,7 +458,7 @@ static void lcl_copyFlatten(RTFReferenceProperties& rProps, RTFSprms& rStyleAttr
 }
 
 writerfilter::Reference<Properties>::Pointer_t
-RTFDocumentImpl::getProperties(RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType)
+RTFDocumentImpl::getProperties(const RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType)
 {
     RTFSprms aSprms(rSprms);
     RTFValue::Pointer_t pAbstractList;
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index 11c8dc851a9d..f34e2ae38463 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -518,7 +518,7 @@ private:
     void parBreak();
     void tableBreak();
     writerfilter::Reference<Properties>::Pointer_t
-    getProperties(RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType);
+    getProperties(const RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType);
     void checkNeedPap();
     void sectBreak(bool bFinal = false);
     void prepareProperties(RTFParserState& rState,
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
index 93007b70c6df..90ed9a015e5d 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
@@ -71,7 +71,7 @@ struct HitItem
 ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentContext >& rxContext,
                                       const uno::Reference< XContentProvider >&  xProvider,
                                       const uno::Sequence< beans::Property >& seq,
-                                      URLParameter& aURLParameter,
+                                      const URLParameter& aURLParameter,
                                       Databases* pDatabases )
     : ResultSetBase( rxContext,xProvider,seq ),
       m_aURLParameter( aURLParameter )
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx
index 249ece256574..98480b04e6d6 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx
@@ -39,7 +39,7 @@ namespace chelp {
         ResultSetForQuery( const css::uno::Reference<css::uno::XComponentContext>& rxContext,
                            const css::uno::Reference<css::ucb::XContentProvider>&  xProvider,
                            const css::uno::Sequence< css::beans::Property >& seq,
-                           URLParameter& aURLParameter,
+                           const URLParameter& aURLParameter,
                            Databases* pDatabases );
 
 


More information about the Libreoffice-commits mailing list