diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-18 17:18:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-18 20:43:16 +0000 |
commit | 6106d99a905883c7325dae252b8b071be1896641 (patch) | |
tree | bdfc25a94cf1e34f605d1d0dfd4439c80fa8996d /include | |
parent | f7f5fa0d36571b5103a54ed1281668cd23c4ecbc (diff) |
boost->std
Change-Id: Ifa87783f68b0fab98f8a0f7cd6ed867202b4532f
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/logging.hxx | 7 | ||||
-rw-r--r-- | include/comphelper/sharedmutex.hxx | 7 | ||||
-rw-r--r-- | include/connectivity/formattedcolumnvalue.hxx | 14 | ||||
-rw-r--r-- | include/connectivity/sdbcx/VKey.hxx | 4 | ||||
-rw-r--r-- | include/connectivity/sqlerror.hxx | 8 | ||||
-rw-r--r-- | include/connectivity/sqlnode.hxx | 6 | ||||
-rw-r--r-- | include/connectivity/statementcomposer.hxx | 8 | ||||
-rw-r--r-- | include/svx/sdr/attribute/sdrallfillattributeshelper.hxx | 6 |
8 files changed, 25 insertions, 35 deletions
diff --git a/include/comphelper/logging.hxx b/include/comphelper/logging.hxx index 2e528691743c..0a5e8077fc0d 100644 --- a/include/comphelper/logging.hxx +++ b/include/comphelper/logging.hxx @@ -26,9 +26,8 @@ #include <com/sun/star/logging/XLogHandler.hpp> #include <com/sun/star/logging/LogLevel.hpp> -#include <boost/shared_ptr.hpp> #include <boost/optional.hpp> - +#include <memory> namespace comphelper { @@ -93,7 +92,7 @@ namespace comphelper class COMPHELPER_DLLPUBLIC EventLogger { protected: - ::boost::shared_ptr< EventLogger_Impl > m_pImpl; + std::shared_ptr< EventLogger_Impl > m_pImpl; public: /** creates an <code>EventLogger</code> instance working with a css.logging.XLogger @@ -513,7 +512,7 @@ namespace comphelper class COMPHELPER_DLLPUBLIC ResourceBasedEventLogger : public EventLogger { private: - ::boost::shared_ptr< ResourceBasedEventLogger_Data > m_pData; + std::shared_ptr< ResourceBasedEventLogger_Data > m_pData; public: /** creates a resource based event logger diff --git a/include/comphelper/sharedmutex.hxx b/include/comphelper/sharedmutex.hxx index 03397d6bed61..cca7239259b6 100644 --- a/include/comphelper/sharedmutex.hxx +++ b/include/comphelper/sharedmutex.hxx @@ -21,11 +21,8 @@ #define INCLUDED_COMPHELPER_SHAREDMUTEX_HXX #include <comphelper/comphelperdllapi.h> - #include <osl/mutex.hxx> - -#include <boost/shared_ptr.hpp> - +#include <memory> namespace comphelper { @@ -48,7 +45,7 @@ namespace comphelper inline operator ::osl::Mutex& () { return *m_pMutexImpl; } private: - ::boost::shared_ptr< ::osl::Mutex > m_pMutexImpl; + std::shared_ptr< ::osl::Mutex > m_pMutexImpl; }; diff --git a/include/connectivity/formattedcolumnvalue.hxx b/include/connectivity/formattedcolumnvalue.hxx index 35b45d25c642..4ce1309a9fea 100644 --- a/include/connectivity/formattedcolumnvalue.hxx +++ b/include/connectivity/formattedcolumnvalue.hxx @@ -26,17 +26,11 @@ #include <com/sun/star/sdbc/XRowSet.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/util/XNumberFormatter.hpp> - -#include <boost/noncopyable.hpp> - -#include <memory> #include <connectivity/dbtoolsdllapi.hxx> - +#include <memory> namespace dbtools { - - struct FormattedColumnValue_Data; //= FormattedColumnValue @@ -44,7 +38,7 @@ namespace dbtools /** a class which helps retrieving and setting the value of a database column as formatted string. */ - class OOO_DLLPUBLIC_DBTOOLS FormattedColumnValue : public ::boost::noncopyable + class OOO_DLLPUBLIC_DBTOOLS FormattedColumnValue { public: /** constructs an instance @@ -97,7 +91,9 @@ namespace dbtools OUString getFormattedValue() const; private: - ::std::unique_ptr< FormattedColumnValue_Data > m_pData; + FormattedColumnValue(const FormattedColumnValue&) SAL_DELETED_FUNCTION; + FormattedColumnValue& operator=(const FormattedColumnValue&) SAL_DELETED_FUNCTION; + std::unique_ptr< FormattedColumnValue_Data > m_pData; }; diff --git a/include/connectivity/sdbcx/VKey.hxx b/include/connectivity/sdbcx/VKey.hxx index f135a77b2cde..6801deda6c5b 100644 --- a/include/connectivity/sdbcx/VKey.hxx +++ b/include/connectivity/sdbcx/VKey.hxx @@ -31,7 +31,7 @@ #include <connectivity/dbtoolsdllapi.hxx> #include <cppuhelper/implbase1.hxx> #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp> -#include <boost/shared_ptr.hpp> +#include <memory> namespace connectivity { @@ -56,7 +56,7 @@ namespace connectivity {} KeyProperties():m_Type(0),m_UpdateRule(0),m_DeleteRule(0){} }; - typedef ::boost::shared_ptr< KeyProperties > TKeyProperties; + typedef std::shared_ptr< KeyProperties > TKeyProperties; typedef ::cppu::ImplHelper1< ::com::sun::star::sdbcx::XDataDescriptorFactory > OKey_BASE; class OCollection; diff --git a/include/connectivity/sqlerror.hxx b/include/connectivity/sqlerror.hxx index f381cc7e0c21..0c45fff8882f 100644 --- a/include/connectivity/sqlerror.hxx +++ b/include/connectivity/sqlerror.hxx @@ -22,11 +22,9 @@ #include <com/sun/star/sdbc/SQLException.hpp> #include <com/sun/star/uno/XComponentContext.hpp> - -#include <boost/shared_ptr.hpp> -#include <boost/optional.hpp> #include <connectivity/dbtoolsdllapi.hxx> - +#include <boost/optional.hpp> +#include <memory> namespace connectivity { @@ -305,7 +303,7 @@ namespace connectivity ) const; private: - ::boost::shared_ptr< SQLError_Impl > m_pImpl; + std::shared_ptr< SQLError_Impl > m_pImpl; }; diff --git a/include/connectivity/sqlnode.hxx b/include/connectivity/sqlnode.hxx index b6c6234a7c62..4efd2ffdbf41 100644 --- a/include/connectivity/sqlnode.hxx +++ b/include/connectivity/sqlnode.hxx @@ -24,10 +24,10 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/util/XNumberFormatTypes.hpp> #include <com/sun/star/beans/XPropertySet.hpp> -#include <vector> #include <functional> +#include <memory> #include <set> -#include <boost/shared_ptr.hpp> +#include <vector> #include <rtl/ustrbuf.hxx> #include <osl/diagnose.h> @@ -80,7 +80,7 @@ namespace connectivity const ::com::sun::star::lang::Locale& rLocale; ::dbtools::DatabaseMetaData aMetaData; OSQLParser* pParser; - ::boost::shared_ptr< QueryNameSet > pSubQueryHistory; + std::shared_ptr< QueryNameSet > pSubQueryHistory; ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > xFormatter; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xField; OUString sPredicateTableAlias; diff --git a/include/connectivity/statementcomposer.hxx b/include/connectivity/statementcomposer.hxx index d53f3903b94d..c3f5464fa501 100644 --- a/include/connectivity/statementcomposer.hxx +++ b/include/connectivity/statementcomposer.hxx @@ -23,8 +23,6 @@ #include <com/sun/star/sdbc/XConnection.hpp> #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp> -#include <boost/noncopyable.hpp> - #include <memory> #include <connectivity/dbtoolsdllapi.hxx> @@ -39,7 +37,7 @@ namespace dbtools struct StatementComposer_Data; /** a class which is able to compose queries (SELECT statements) from a command and a command type */ - class OOO_DLLPUBLIC_DBTOOLS StatementComposer : public ::boost::noncopyable + class OOO_DLLPUBLIC_DBTOOLS StatementComposer { ::std::unique_ptr< StatementComposer_Data > m_pData; @@ -90,7 +88,9 @@ namespace dbtools getQuery(); private: - StatementComposer(); // not implemented + StatementComposer(const StatementComposer&) SAL_DELETED_FUNCTION; + StatementComposer& operator=(const StatementComposer&) SAL_DELETED_FUNCTION; + StatementComposer() SAL_DELETED_FUNCTION; }; diff --git a/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx b/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx index 73baeca50801..580bee23966c 100644 --- a/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx +++ b/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx @@ -23,9 +23,9 @@ #include <drawinglayer/attribute/fillgradientattribute.hxx> #include <drawinglayer/attribute/sdrfillattribute.hxx> #include <drawinglayer/primitive2d/baseprimitive2d.hxx> -#include <boost/shared_ptr.hpp> #include <tools/color.hxx> #include <svl/itemset.hxx> +#include <memory> ////////////////////////////////////////////////////////////////////////////// @@ -38,8 +38,8 @@ namespace drawinglayer private: basegfx::B2DRange maLastPaintRange; basegfx::B2DRange maLastDefineRange; - boost::shared_ptr< drawinglayer::attribute::SdrFillAttribute > maFillAttribute; - boost::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute; + std::shared_ptr< drawinglayer::attribute::SdrFillAttribute > maFillAttribute; + std::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute; drawinglayer::primitive2d::Primitive2DSequence maPrimitives; void createPrimitive2DSequence( |