diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx index 4e48d5ac2510..2eb3d5495aa7 100644 --- a/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsCacheCompactor.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -109,7 +109,7 @@ namespace sd { namespace slidesorter { namespace cache { static const ::rtl::OUString sErase (RTL_CONSTASCII_USTRINGPARAM("Erase")); static const ::rtl::OUString sResolution (RTL_CONSTASCII_USTRINGPARAM("ResolutionReduction")); static const ::rtl::OUString sPNGCompression (RTL_CONSTASCII_USTRINGPARAM("PNGCompression")); - + ::boost::shared_ptr<BitmapCompressor> pCompressor; ::rtl::OUString sCompressionPolicy(sPNGCompression); Any aCompressionPolicy (CacheConfiguration::Instance()->GetValue( @@ -124,7 +124,7 @@ namespace sd { namespace slidesorter { namespace cache { pCompressor.reset(new ResolutionReduction()); else pCompressor.reset(new PngCompression()); - + ::std::auto_ptr<CacheCompactor> pCompactor (NULL); ::rtl::OUString sCompactionPolicy(sCompress); Any aCompactionPolicy (CacheConfiguration::Instance()->GetValue( @@ -169,14 +169,14 @@ CacheCompactor::CacheCompactor( IMPL_LINK(CacheCompactor, CompactionCallback, Timer*, EMPTYARG) { mbIsCompactionRunning = true; - + try { Run(); } catch(::com::sun::star::uno::RuntimeException e) { } catch(::com::sun::star::uno::Exception e) { } - + mbIsCompactionRunning = false; return 1; } |