[Libreoffice-commits] core.git: ucb/qa ucb/source

Stephan Bergmann sbergman at redhat.com
Wed Oct 26 11:57:31 UTC 2016


 ucb/qa/cppunit/webdav/webdav_options.cxx |    4 ++--
 ucb/source/ucp/webdav-neon/DAVTypes.hxx  |   26 +++++++++++++-------------
 2 files changed, 15 insertions(+), 15 deletions(-)

New commits:
commit 95cfef300eb1a32d700479d2cefddc3fc4d0b37c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Oct 26 13:57:05 2016 +0200

    const-ness fixes
    
    Change-Id: I83858c0cbca0fc493ac506e2b839e43310f3bb2f

diff --git a/ucb/qa/cppunit/webdav/webdav_options.cxx b/ucb/qa/cppunit/webdav/webdav_options.cxx
index b1a71ba..9bdc1c5 100644
--- a/ucb/qa/cppunit/webdav/webdav_options.cxx
+++ b/ucb/qa/cppunit/webdav/webdav_options.cxx
@@ -27,7 +27,7 @@ namespace
 
         void tearDown(  ) override;
 
-        void DAVTypesCheckInit( webdav_ucp::DAVOptions& aDavType );
+        void DAVTypesCheckInit( webdav_ucp::DAVOptions const & aDavType );
         void DAVTypesTest();
 
         void DAVOptsCacheTests();
@@ -51,7 +51,7 @@ namespace
     {
     }
 
-    void webdav_opts_test::DAVTypesCheckInit( webdav_ucp::DAVOptions& aDavType )
+    void webdav_opts_test::DAVTypesCheckInit( webdav_ucp::DAVOptions const & aDavType )
     {
         // check if the class is at reset state
         // using accessors
diff --git a/ucb/source/ucp/webdav-neon/DAVTypes.hxx b/ucb/source/ucp/webdav-neon/DAVTypes.hxx
index 2356ab1..68ac37e 100644
--- a/ucb/source/ucp/webdav-neon/DAVTypes.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVTypes.hxx
@@ -105,41 +105,41 @@ namespace webdav_ucp
 
         virtual ~DAVOptions();
 
-        bool isClass1() { return m_isClass1; };
+        bool isClass1() const { return m_isClass1; };
         void setClass1( bool Class1 = true ) { m_isClass1 = Class1; };
 
-        bool isClass2() { return m_isClass2; };
+        bool isClass2() const { return m_isClass2; };
         void setClass2( bool Class2 = true ) { m_isClass2 = Class2; };
 
-        bool isClass3() { return m_isClass3; };
+        bool isClass3() const { return m_isClass3; };
         void setClass3( bool Class3 = true ) { m_isClass3 = Class3; };
 
-        bool isHeadAllowed() { return m_isHeadAllowed; };
+        bool isHeadAllowed() const { return m_isHeadAllowed; };
         void setHeadAllowed( bool HeadAllowed = true ) { m_isHeadAllowed = HeadAllowed; };
 
-        sal_uInt32 getStaleTime() { return m_nStaleTime ; };
+        sal_uInt32 getStaleTime() const { return m_nStaleTime ; };
         void setStaleTime( const sal_uInt32 nStaleTime ) { m_nStaleTime = nStaleTime; };
 
-        sal_uInt32 getRequestedTimeLife() { return m_nRequestedTimeLife; };
+        sal_uInt32 getRequestedTimeLife() const { return m_nRequestedTimeLife; };
         void setRequestedTimeLife( const sal_uInt32 nRequestedTimeLife ) { m_nRequestedTimeLife = nRequestedTimeLife; };
 
-        const OUString & getURL() { return m_sURL; };
+        const OUString & getURL() const { return m_sURL; };
         void setURL( const OUString & sURL ) { m_sURL = sURL; };
 
-        const OUString & getRedirectedURL() { return m_sRedirectedURL; };
+        const OUString & getRedirectedURL() const { return m_sRedirectedURL; };
         void setRedirectedURL( const OUString & sRedirectedURL ) { m_sRedirectedURL = sRedirectedURL; };
 
         void  setAllowedMethods( const OUString & aAllowedMethods ) { m_aAllowedMethods = aAllowedMethods; } ;
-        const OUString & getAllowedMethods() { return m_aAllowedMethods; } ;
-        bool isLockAllowed() { return ( m_aAllowedMethods.indexOf( "LOCK" ) != -1 ); };
+        const OUString & getAllowedMethods() const { return m_aAllowedMethods; } ;
+        bool isLockAllowed() const { return ( m_aAllowedMethods.indexOf( "LOCK" ) != -1 ); };
 
         void setLocked( bool locked = true ) { m_isLocked = locked; } ;
-        bool isLocked() { return m_isLocked; };
+        bool isLocked() const { return m_isLocked; };
 
-        sal_uInt16 getHttpResponseStatusCode() { return m_nHttpResponseStatusCode; };
+        sal_uInt16 getHttpResponseStatusCode() const { return m_nHttpResponseStatusCode; };
         void setHttpResponseStatusCode( const sal_uInt16 nHttpResponseStatusCode ) { m_nHttpResponseStatusCode = nHttpResponseStatusCode; };
 
-        const OUString & getHttpResponseStatusText() { return m_sHttpResponseStatusText; };
+        const OUString & getHttpResponseStatusText() const { return m_sHttpResponseStatusText; };
         void setHttpResponseStatusText( const OUString & rHttpResponseStatusText ) { m_sHttpResponseStatusText = rHttpResponseStatusText; };
 
         void init() {


More information about the Libreoffice-commits mailing list