diff options
-rw-r--r-- | include/basic/codecompletecache.hxx | 1 | ||||
-rw-r--r-- | include/basic/sbmod.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/scopeguard.hxx | 9 | ||||
-rw-r--r-- | include/comphelper/solarmutex.hxx | 6 | ||||
-rw-r--r-- | include/comphelper/syntaxhighlight.hxx | 5 | ||||
-rw-r--r-- | include/comphelper/threadpool.hxx | 6 | ||||
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 4 | ||||
-rw-r--r-- | include/i18nutil/oneToOneMapping.hxx | 10 |
8 files changed, 29 insertions, 17 deletions
diff --git a/include/basic/codecompletecache.hxx b/include/basic/codecompletecache.hxx index dad54f082b2c..591daf9186a0 100644 --- a/include/basic/codecompletecache.hxx +++ b/include/basic/codecompletecache.hxx @@ -23,7 +23,6 @@ #include <basic/sbdef.hxx> #include <basic/sbxobj.hxx> #include <basic/sbxdef.hxx> -#include <boost/utility.hpp> #include <rtl/ustring.hxx> #include <svtools/miscopt.hxx> #include <unordered_map> diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx index 2fd933fe3175..5aaafa73ea3b 100644 --- a/include/basic/sbmod.hxx +++ b/include/basic/sbmod.hxx @@ -28,7 +28,6 @@ #include <rtl/ustring.hxx> #include <vector> #include <deque> -#include <boost/utility.hpp> #include <basic/basicdllapi.h> #include <basic/codecompletecache.hxx> @@ -46,7 +45,7 @@ class ModuleInitDependencyMap; struct ClassModuleRunInitItem; struct SbClassData; -class BASIC_DLLPUBLIC SbModule : public SbxObject, private ::boost::noncopyable +class BASIC_DLLPUBLIC SbModule : public SbxObject { friend class SbiCodeGen; friend class SbMethod; @@ -58,6 +57,8 @@ class BASIC_DLLPUBLIC SbModule : public SbxObject, private ::boost::noncopyable BASIC_DLLPRIVATE void implClearIfVarDependsOnDeletedBasic( SbxVariable* pVar, StarBASIC* pDeletedBasic ); + SbModule(const SbModule&) SAL_DELETED_FUNCTION; + SbModule& operator=(const SbModule&) SAL_DELETED_FUNCTION; protected: com::sun::star::uno::Reference< com::sun::star::script::XInvocation > mxWrapper; OUString aOUSource; diff --git a/include/comphelper/scopeguard.hxx b/include/comphelper/scopeguard.hxx index 7e7d0e3e8300..4f64d5bf08b6 100644 --- a/include/comphelper/scopeguard.hxx +++ b/include/comphelper/scopeguard.hxx @@ -22,16 +22,13 @@ #include <comphelper/comphelperdllapi.h> #include <boost/function.hpp> -#include <boost/noncopyable.hpp> #include <boost/bind.hpp> namespace comphelper { /** ScopeGuard to ease writing exception-safe code. */ -class COMPHELPER_DLLPUBLIC ScopeGuard : private ::boost::noncopyable - // noncopyable until we have - // good reasons... +class COMPHELPER_DLLPUBLIC ScopeGuard { public: enum exc_handling { IGNORE_EXCEPTIONS, ALLOW_EXCEPTIONS }; @@ -53,6 +50,10 @@ public: void dismiss(); private: + // noncopyable until we have good reasons... + ScopeGuard(const ScopeGuard&) SAL_DELETED_FUNCTION; + ScopeGuard& operator=(const ScopeGuard&) SAL_DELETED_FUNCTION; + ::boost::function0<void> m_func; // preferring portable syntax exc_handling const m_excHandling; }; diff --git a/include/comphelper/solarmutex.hxx b/include/comphelper/solarmutex.hxx index 6bb93f17aa27..3b66a005370c 100644 --- a/include/comphelper/solarmutex.hxx +++ b/include/comphelper/solarmutex.hxx @@ -22,14 +22,13 @@ #include <sal/config.h> -#include <boost/noncopyable.hpp> #include <comphelper/comphelperdllapi.h> namespace comphelper { /** SolarMutex interface, needed for Application::GetSolarMutex(). */ -class COMPHELPER_DLLPUBLIC SolarMutex: private boost::noncopyable { +class COMPHELPER_DLLPUBLIC SolarMutex { public: virtual void acquire() = 0; @@ -41,6 +40,9 @@ protected: SolarMutex(); virtual ~SolarMutex(); +private: + SolarMutex(const SolarMutex&) SAL_DELETED_FUNCTION; + SolarMutex& operator=(const SolarMutex&) SAL_DELETED_FUNCTION; }; } diff --git a/include/comphelper/syntaxhighlight.hxx b/include/comphelper/syntaxhighlight.hxx index 16d3c12e046d..c2487499c375 100644 --- a/include/comphelper/syntaxhighlight.hxx +++ b/include/comphelper/syntaxhighlight.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_COMPHELPER_SYNTAXHIGHLIGHT_HXX #define INCLUDED_COMPHELPER_SYNTAXHIGHLIGHT_HXX -#include <boost/noncopyable.hpp> #include <rtl/ustring.hxx> #include <comphelper/comphelperdllapi.h> @@ -66,13 +65,15 @@ enum HighlighterLanguage HIGHLIGHT_SQL }; -class COMPHELPER_DLLPUBLIC SyntaxHighlighter: private boost::noncopyable +class COMPHELPER_DLLPUBLIC SyntaxHighlighter { class Tokenizer; HighlighterLanguage eLanguage; std::unique_ptr<Tokenizer> m_tokenizer; + SyntaxHighlighter(const SyntaxHighlighter&) SAL_DELETED_FUNCTION; + SyntaxHighlighter& operator=(const SyntaxHighlighter&) SAL_DELETED_FUNCTION; public: SyntaxHighlighter(HighlighterLanguage language); ~SyntaxHighlighter(); diff --git a/include/comphelper/threadpool.hxx b/include/comphelper/threadpool.hxx index b5606e027f05..1aa4733e6012 100644 --- a/include/comphelper/threadpool.hxx +++ b/include/comphelper/threadpool.hxx @@ -15,7 +15,6 @@ #include <osl/mutex.hxx> #include <osl/conditn.hxx> #include <rtl/ref.hxx> -#include <boost/noncopyable.hpp> #include <vector> #include <comphelper/comphelperdllapi.h> @@ -30,7 +29,7 @@ public: }; /// A very basic thread pool implementation -class COMPHELPER_DLLPUBLIC ThreadPool: private boost::noncopyable +class COMPHELPER_DLLPUBLIC ThreadPool { public: /// returns a pointer to a shared pool with optimal thread @@ -47,6 +46,9 @@ public: void waitUntilEmpty(); private: + ThreadPool(const ThreadPool&) SAL_DELETED_FUNCTION; + ThreadPool& operator=(const ThreadPool&) SAL_DELETED_FUNCTION; + class ThreadWorker; friend class ThreadWorker; diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 3d484ad9f5d2..18ec22e78517 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -16,7 +16,7 @@ #include <i18nlangtag/i18nlangtagdllapi.h> #include <i18nlangtag/lang.h> -#include <boost/shared_ptr.hpp> +#include <memory> #include <vector> typedef struct _rtl_Locale rtl_Locale; // as in rtl/locale.h @@ -507,7 +507,7 @@ public: /** @ATTENTION: _ONLY_ to be called by the application's configuration! */ static void setConfiguredSystemLanguage( LanguageType nLang ); - typedef ::boost::shared_ptr< LanguageTagImpl > ImplPtr; + typedef std::shared_ptr< LanguageTagImpl > ImplPtr; private: diff --git a/include/i18nutil/oneToOneMapping.hxx b/include/i18nutil/oneToOneMapping.hxx index 72a0b9375cd8..cde6681e2089 100644 --- a/include/i18nutil/oneToOneMapping.hxx +++ b/include/i18nutil/oneToOneMapping.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_I18NUTIL_ONETOONEMAPPING_HXX #define INCLUDED_I18NUTIL_ONETOONEMAPPING_HXX -#include <boost/noncopyable.hpp> #include <rtl/ustring.hxx> #include <i18nutil/i18nutildllapi.h> @@ -41,8 +40,11 @@ struct UnicodePairWithFlag UnicodePairFlag flag; }; -class I18NUTIL_DLLPUBLIC oneToOneMapping : private boost::noncopyable +class I18NUTIL_DLLPUBLIC oneToOneMapping { +private: + oneToOneMapping(const oneToOneMapping&) SAL_DELETED_FUNCTION; + oneToOneMapping& operator=(const oneToOneMapping&) SAL_DELETED_FUNCTION; public: oneToOneMapping( OneToOneMappingTable_t *rpTable, const size_t rnSize, const size_t rnUnitSize = sizeof(OneToOneMappingTable_t) ); virtual ~oneToOneMapping(); @@ -60,6 +62,10 @@ protected: class I18NUTIL_DLLPUBLIC oneToOneMappingWithFlag : public oneToOneMapping { +private: + oneToOneMappingWithFlag(const oneToOneMappingWithFlag&) SAL_DELETED_FUNCTION; + oneToOneMappingWithFlag& operator=(const oneToOneMappingWithFlag&) SAL_DELETED_FUNCTION; + friend class widthfolding; public: |