ucb/source/ucp/webdav-neon/webdavcontent.cxx | 56 +++++++++++++-------------- 1 file changed, 28 insertions(+), 28 deletions(-)
New commits: commit cac08e96c753f3aabf3332914da97a49abe1e395 Author: Giuseppe Castagno <giuseppe.casta...@acca-esse.eu> Date: Thu Oct 27 10:03:46 2016 +0200 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.casta...@acca-esse.eu> Tested-by: Giuseppe Castagno <giuseppe.casta...@acca-esse.eu> diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 96b86f7..96a7371 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, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits