diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-26 13:57:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-26 13:57:05 +0200 |
commit | 95cfef300eb1a32d700479d2cefddc3fc4d0b37c (patch) | |
tree | 33ab6efe01da3dbb38c2020e555b06b4c2a0c01d /ucb | |
parent | 36c4fd5c3310029e00cb6479962623f5fd2d8cd6 (diff) |
const-ness fixes
Change-Id: I83858c0cbca0fc493ac506e2b839e43310f3bb2f
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/qa/cppunit/webdav/webdav_options.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVTypes.hxx | 26 |
2 files changed, 15 insertions, 15 deletions
diff --git a/ucb/qa/cppunit/webdav/webdav_options.cxx b/ucb/qa/cppunit/webdav/webdav_options.cxx index b1a71ba09b3d..9bdc1c5a93d7 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 2356ab132315..68ac37e41038 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() { |