summaryrefslogtreecommitdiff
path: root/svtools/source/misc/imagemgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/imagemgr.cxx')
-rw-r--r--svtools/source/misc/imagemgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 0cf60364ca55..e341ec2212a1 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -379,7 +379,7 @@ static sal_uInt16 GetImageId_Impl( const INetURLObject& rObject, bool bDetectFol
sal_uInt16 nId = IMG_WRITERTEMPLATE;
try
{
- SotStorageRef aStorage = new SotStorage( sURL, STREAM_STD_READ );
+ tools::SvRef<SotStorage> aStorage = new SotStorage( sURL, STREAM_STD_READ );
if ( !aStorage->GetError() )
{
SvGlobalName aGlobalName = aStorage->GetClassName();