summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-10-27 10:03:46 +0200
committerGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-10-27 10:31:02 +0000
commitcac08e96c753f3aabf3332914da97a49abe1e395 (patch)
tree4918531a3578186f77f460f8085cdeea20005883 /ucb
parent7da765dde1800aa607f96e7a5807582ad2894acb (diff)
Cosmetic: Move function member around...
...so it's nearer to the other function member that uses the class variables it initializes. Change-Id: I199621fbcad36313e0948627d47445a1de211d02 Reviewed-on: https://gerrit.libreoffice.org/30313 Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> Tested-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx56
1 files changed, 28 insertions, 28 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index 96b86f720d2c..96a737130006 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -285,34 +285,6 @@ Content::~Content()
}
-void Content::initOptsCacheLifeTime()
-{
- // see description in
- // officecfg/registry/schema/org/openoffice/Inet.xcs
- // for use of these filed values.
- sal_uInt32 nAtime;
- nAtime = officecfg::Inet::Settings::OptsCacheLifeImplWeb::get( m_xContext );
- m_nOptsCacheLifeImplWeb = std::max( sal_uInt32( 0 ),
- std::min( nAtime, sal_uInt32( 3600 ) ) );
-
- nAtime = officecfg::Inet::Settings::OptsCacheLifeDAV::get( m_xContext );
- m_nOptsCacheLifeDAV = std::max( sal_uInt32( 0 ),
- std::min( nAtime, sal_uInt32( 3600 ) ) );
-
- nAtime = officecfg::Inet::Settings::OptsCacheLifeDAVLocked::get( m_xContext );
- m_nOptsCacheLifeDAVLocked = std::max( sal_uInt32( 0 ),
- std::min( nAtime, sal_uInt32( 3600 ) ) );
-
- nAtime = officecfg::Inet::Settings::OptsCacheLifeNotImpl::get( m_xContext );
- m_nOptsCacheLifeNotImpl = std::max( sal_uInt32( 0 ),
- std::min( nAtime, sal_uInt32( 43200 ) ) );
-
- nAtime = officecfg::Inet::Settings::OptsCacheLifeNotFound::get( m_xContext );
- m_nOptsCacheLifeNotFound = std::max( sal_uInt32( 0 ),
- std::min( nAtime, sal_uInt32( 30 ) ) );
-}
-
-
// XInterface methods.
@@ -4032,6 +4004,34 @@ Content::ResourceType Content::getResourceType(
}
+void Content::initOptsCacheLifeTime()
+{
+ // see description in
+ // officecfg/registry/schema/org/openoffice/Inet.xcs
+ // for use of these filed values.
+ sal_uInt32 nAtime;
+ nAtime = officecfg::Inet::Settings::OptsCacheLifeImplWeb::get( m_xContext );
+ m_nOptsCacheLifeImplWeb = std::max( sal_uInt32( 0 ),
+ std::min( nAtime, sal_uInt32( 3600 ) ) );
+
+ nAtime = officecfg::Inet::Settings::OptsCacheLifeDAV::get( m_xContext );
+ m_nOptsCacheLifeDAV = std::max( sal_uInt32( 0 ),
+ std::min( nAtime, sal_uInt32( 3600 ) ) );
+
+ nAtime = officecfg::Inet::Settings::OptsCacheLifeDAVLocked::get( m_xContext );
+ m_nOptsCacheLifeDAVLocked = std::max( sal_uInt32( 0 ),
+ std::min( nAtime, sal_uInt32( 3600 ) ) );
+
+ nAtime = officecfg::Inet::Settings::OptsCacheLifeNotImpl::get( m_xContext );
+ m_nOptsCacheLifeNotImpl = std::max( sal_uInt32( 0 ),
+ std::min( nAtime, sal_uInt32( 43200 ) ) );
+
+ nAtime = officecfg::Inet::Settings::OptsCacheLifeNotFound::get( m_xContext );
+ m_nOptsCacheLifeNotFound = std::max( sal_uInt32( 0 ),
+ std::min( nAtime, sal_uInt32( 30 ) ) );
+}
+
+
void Content::getResourceOptions(
const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv,
DAVOptions& rDAVOptions,