summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-08-12 15:00:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-05 09:01:19 +0200
commitb71fdc67ed1efd421b9b1c747708958e8e09f73c (patch)
tree2fc9fbf2d80a80e1c41921458adceccf2562d1f0 /svtools
parent9051ceb9f2048a85772306573cb662ee14efd718 (diff)
remove handing of deprecated Storage path option
The only user of StoragePath was TemplateFolderCacheImpl::openCacheStream which uses TempPath for the cache file now. Change-Id: Ia21b5aa804222f28a3af3779a0ecc4789c1860b3 Reviewed-on: https://gerrit.libreoffice.org/41087 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/templatefoldercache.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index f83e11dcdf0a..ab3db5afa563 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -691,20 +691,20 @@ namespace svt
// close any old stream instance
closeCacheStream( );
- // get the storage directory
- OUString sStorageURL = implParseSmart( SvtPathOptions().GetStoragePath() );
- INetURLObject aStorageURL( sStorageURL );
- if ( INetProtocol::NotValid == aStorageURL.GetProtocol() )
+ // get the temp directory
+ OUString sTempURL = implParseSmart( SvtPathOptions().GetTempPath() );
+ INetURLObject aTempURL( sTempURL );
+ if ( INetProtocol::NotValid == aTempURL.GetProtocol() )
{
- OSL_FAIL( "TemplateFolderCacheImpl::openCacheStream: invalid storage path!" );
+ OSL_FAIL( "TemplateFolderCacheImpl::openCacheStream: invalid temp path!" );
return false;
}
// append our name
- aStorageURL.Append( ".templdir.cache" );
+ aTempURL.Append( ".templdir.cache" );
// open the stream
- m_pCacheStream = UcbStreamHelper::CreateStream( aStorageURL.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ),
+ m_pCacheStream = UcbStreamHelper::CreateStream( aTempURL.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ),
_bForRead ? StreamMode::READ | StreamMode::NOCREATE : StreamMode::WRITE | StreamMode::TRUNC );
DBG_ASSERT( m_pCacheStream, "TemplateFolderCacheImpl::openCacheStream: could not open/create the cache stream!" );
if ( m_pCacheStream && m_pCacheStream->GetErrorCode() )