X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverterCache.h;h=ab4550c1b01c888b116bf7a30d06640a7aca983b;hb=cca78e3c8ae27431323746abd64f9d7db017099d;hp=ccbc1befc64fcccf38e553696e31bb7aa86d2b9b;hpb=fad47c0fe0a45da4ac4a395817a0ad73425ef275;p=lyx.git diff --git a/src/ConverterCache.h b/src/ConverterCache.h index ccbc1befc6..ab4550c1b0 100644 --- a/src/ConverterCache.h +++ b/src/ConverterCache.h @@ -10,21 +10,18 @@ * * Full author contact details are available in file CREDITS. * - * lyx::ConverterCache is the manager of the file cache. - * It is responsible for creating the lyx::ConverterCacheItem's + * ConverterCache is the manager of the file cache. + * It is responsible for creating the ConverterCacheItem's * and maintaining them. * - * lyx::ConverterCache is a singleton class. It is possible to have + * ConverterCache is a singleton class. It is possible to have * only one instance of it at any moment. */ #ifndef CONVERTERCACHE_H #define CONVERTERCACHE_H -#include -#include - -#include +#include "support/strfwd.h" namespace lyx { @@ -49,7 +46,7 @@ namespace support { class FileName; } * * There is no cache maintenance yet (max size, max age etc.) */ -class ConverterCache : boost::noncopyable { +class ConverterCache { public: /// This is a singleton class. Get the instance. @@ -89,6 +86,10 @@ public: support::FileName const & dest) const; private: + /// noncopyable + ConverterCache(ConverterCache const &); + void operator=(ConverterCache const &); + /** Make the c-tor, d-tor private so we can control how many objects * are instantiated. */ @@ -99,7 +100,7 @@ private: /// Use the Pimpl idiom to hide the internals. class Impl; /// The pointer never changes although *pimpl_'s contents may. - boost::scoped_ptr const pimpl_; + Impl * const pimpl_; }; } // namespace lyx