Kaydet (Commit) 6106d99a authored tarafından Caolán McNamara's avatar Caolán McNamara

boost->std

Change-Id: Ifa87783f68b0fab98f8a0f7cd6ed867202b4532f
üst f7f5fa0d
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <iterator> #include <iterator>
#include <boost/scoped_ptr.hpp> #include <memory>
using namespace ::comphelper; using namespace ::comphelper;
using namespace ::connectivity; using namespace ::connectivity;
...@@ -65,9 +65,9 @@ namespace connectivity ...@@ -65,9 +65,9 @@ namespace connectivity
Reference< XNameAccess > m_xTableContainer; Reference< XNameAccess > m_xTableContainer;
Reference< XNameAccess > m_xQueryContainer; Reference< XNameAccess > m_xQueryContainer;
::boost::shared_ptr< OSQLTables > m_pTables; // all tables which participate in the SQL statement std::shared_ptr< OSQLTables > m_pTables; // all tables which participate in the SQL statement
::boost::shared_ptr< OSQLTables > m_pSubTables; // all tables from sub queries not the tables from the select tables std::shared_ptr< OSQLTables > m_pSubTables; // all tables from sub queries not the tables from the select tables
::boost::shared_ptr< QueryNameSet > m_pForbiddenQueryNames; std::shared_ptr< QueryNameSet > m_pForbiddenQueryNames;
sal_uInt32 m_nIncludeMask; sal_uInt32 m_nIncludeMask;
...@@ -114,7 +114,7 @@ namespace connectivity ...@@ -114,7 +114,7 @@ namespace connectivity
*/ */
class ForbidQueryName class ForbidQueryName
{ {
::boost::shared_ptr< QueryNameSet >& m_rpAllForbiddenNames; std::shared_ptr< QueryNameSet >& m_rpAllForbiddenNames;
OUString m_sForbiddenQueryName; OUString m_sForbiddenQueryName;
public: public:
...@@ -332,7 +332,7 @@ void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQu ...@@ -332,7 +332,7 @@ void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQu
break; break;
OUString sError; OUString sError;
boost::scoped_ptr< OSQLParseNode > pSubQueryNode( const_cast< OSQLParser& >( m_rParser ).parseTree( sError, sSubQueryCommand, false ) ); std::unique_ptr< OSQLParseNode > pSubQueryNode( const_cast< OSQLParser& >( m_rParser ).parseTree( sError, sSubQueryCommand, false ) );
if ( !pSubQueryNode.get() ) if ( !pSubQueryNode.get() )
break; break;
......
...@@ -26,9 +26,8 @@ ...@@ -26,9 +26,8 @@
#include <com/sun/star/logging/XLogHandler.hpp> #include <com/sun/star/logging/XLogHandler.hpp>
#include <com/sun/star/logging/LogLevel.hpp> #include <com/sun/star/logging/LogLevel.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <memory>
namespace comphelper namespace comphelper
{ {
...@@ -93,7 +92,7 @@ namespace comphelper ...@@ -93,7 +92,7 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC EventLogger class COMPHELPER_DLLPUBLIC EventLogger
{ {
protected: protected:
::boost::shared_ptr< EventLogger_Impl > m_pImpl; std::shared_ptr< EventLogger_Impl > m_pImpl;
public: public:
/** creates an <code>EventLogger</code> instance working with a css.logging.XLogger /** creates an <code>EventLogger</code> instance working with a css.logging.XLogger
...@@ -513,7 +512,7 @@ namespace comphelper ...@@ -513,7 +512,7 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC ResourceBasedEventLogger : public EventLogger class COMPHELPER_DLLPUBLIC ResourceBasedEventLogger : public EventLogger
{ {
private: private:
::boost::shared_ptr< ResourceBasedEventLogger_Data > m_pData; std::shared_ptr< ResourceBasedEventLogger_Data > m_pData;
public: public:
/** creates a resource based event logger /** creates a resource based event logger
......
...@@ -21,11 +21,8 @@ ...@@ -21,11 +21,8 @@
#define INCLUDED_COMPHELPER_SHAREDMUTEX_HXX #define INCLUDED_COMPHELPER_SHAREDMUTEX_HXX
#include <comphelper/comphelperdllapi.h> #include <comphelper/comphelperdllapi.h>
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <memory>
#include <boost/shared_ptr.hpp>
namespace comphelper namespace comphelper
{ {
...@@ -48,7 +45,7 @@ namespace comphelper ...@@ -48,7 +45,7 @@ namespace comphelper
inline operator ::osl::Mutex& () { return *m_pMutexImpl; } inline operator ::osl::Mutex& () { return *m_pMutexImpl; }
private: private:
::boost::shared_ptr< ::osl::Mutex > m_pMutexImpl; std::shared_ptr< ::osl::Mutex > m_pMutexImpl;
}; };
......
...@@ -26,17 +26,11 @@ ...@@ -26,17 +26,11 @@
#include <com/sun/star/sdbc/XRowSet.hpp> #include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp> #include <com/sun/star/util/XNumberFormatter.hpp>
#include <boost/noncopyable.hpp>
#include <memory>
#include <connectivity/dbtoolsdllapi.hxx> #include <connectivity/dbtoolsdllapi.hxx>
#include <memory>
namespace dbtools namespace dbtools
{ {
struct FormattedColumnValue_Data; struct FormattedColumnValue_Data;
//= FormattedColumnValue //= FormattedColumnValue
...@@ -44,7 +38,7 @@ namespace dbtools ...@@ -44,7 +38,7 @@ namespace dbtools
/** a class which helps retrieving and setting the value of a database column /** a class which helps retrieving and setting the value of a database column
as formatted string. as formatted string.
*/ */
class OOO_DLLPUBLIC_DBTOOLS FormattedColumnValue : public ::boost::noncopyable class OOO_DLLPUBLIC_DBTOOLS FormattedColumnValue
{ {
public: public:
/** constructs an instance /** constructs an instance
...@@ -97,7 +91,9 @@ namespace dbtools ...@@ -97,7 +91,9 @@ namespace dbtools
OUString getFormattedValue() const; OUString getFormattedValue() const;
private: 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;
}; };
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <connectivity/dbtoolsdllapi.hxx> #include <connectivity/dbtoolsdllapi.hxx>
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp> #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
#include <boost/shared_ptr.hpp> #include <memory>
namespace connectivity namespace connectivity
{ {
...@@ -56,7 +56,7 @@ namespace connectivity ...@@ -56,7 +56,7 @@ namespace connectivity
{} {}
KeyProperties():m_Type(0),m_UpdateRule(0),m_DeleteRule(0){} 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; typedef ::cppu::ImplHelper1< ::com::sun::star::sdbcx::XDataDescriptorFactory > OKey_BASE;
class OCollection; class OCollection;
......
...@@ -22,11 +22,9 @@ ...@@ -22,11 +22,9 @@
#include <com/sun/star/sdbc/SQLException.hpp> #include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XComponentContext.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/optional.hpp>
#include <connectivity/dbtoolsdllapi.hxx> #include <connectivity/dbtoolsdllapi.hxx>
#include <boost/optional.hpp>
#include <memory>
namespace connectivity namespace connectivity
{ {
...@@ -305,7 +303,7 @@ namespace connectivity ...@@ -305,7 +303,7 @@ namespace connectivity
) const; ) const;
private: private:
::boost::shared_ptr< SQLError_Impl > m_pImpl; std::shared_ptr< SQLError_Impl > m_pImpl;
}; };
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/util/XNumberFormatTypes.hpp> #include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <vector>
#include <functional> #include <functional>
#include <memory>
#include <set> #include <set>
#include <boost/shared_ptr.hpp> #include <vector>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
...@@ -80,7 +80,7 @@ namespace connectivity ...@@ -80,7 +80,7 @@ namespace connectivity
const ::com::sun::star::lang::Locale& rLocale; const ::com::sun::star::lang::Locale& rLocale;
::dbtools::DatabaseMetaData aMetaData; ::dbtools::DatabaseMetaData aMetaData;
OSQLParser* pParser; 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::util::XNumberFormatter > xFormatter;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xField; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xField;
OUString sPredicateTableAlias; OUString sPredicateTableAlias;
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include <com/sun/star/sdbc/XConnection.hpp> #include <com/sun/star/sdbc/XConnection.hpp>
#include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp> #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
#include <boost/noncopyable.hpp>
#include <memory> #include <memory>
#include <connectivity/dbtoolsdllapi.hxx> #include <connectivity/dbtoolsdllapi.hxx>
...@@ -39,7 +37,7 @@ namespace dbtools ...@@ -39,7 +37,7 @@ namespace dbtools
struct StatementComposer_Data; struct StatementComposer_Data;
/** a class which is able to compose queries (SELECT statements) from a command and a command type /** 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; ::std::unique_ptr< StatementComposer_Data > m_pData;
...@@ -90,7 +88,9 @@ namespace dbtools ...@@ -90,7 +88,9 @@ namespace dbtools
getQuery(); getQuery();
private: private:
StatementComposer(); // not implemented StatementComposer(const StatementComposer&) SAL_DELETED_FUNCTION;
StatementComposer& operator=(const StatementComposer&) SAL_DELETED_FUNCTION;
StatementComposer() SAL_DELETED_FUNCTION;
}; };
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
#include <drawinglayer/attribute/fillgradientattribute.hxx> #include <drawinglayer/attribute/fillgradientattribute.hxx>
#include <drawinglayer/attribute/sdrfillattribute.hxx> #include <drawinglayer/attribute/sdrfillattribute.hxx>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx> #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <boost/shared_ptr.hpp>
#include <tools/color.hxx> #include <tools/color.hxx>
#include <svl/itemset.hxx> #include <svl/itemset.hxx>
#include <memory>
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
...@@ -38,8 +38,8 @@ namespace drawinglayer ...@@ -38,8 +38,8 @@ namespace drawinglayer
private: private:
basegfx::B2DRange maLastPaintRange; basegfx::B2DRange maLastPaintRange;
basegfx::B2DRange maLastDefineRange; basegfx::B2DRange maLastDefineRange;
boost::shared_ptr< drawinglayer::attribute::SdrFillAttribute > maFillAttribute; std::shared_ptr< drawinglayer::attribute::SdrFillAttribute > maFillAttribute;
boost::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute; std::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute;
drawinglayer::primitive2d::Primitive2DSequence maPrimitives; drawinglayer::primitive2d::Primitive2DSequence maPrimitives;
void createPrimitive2DSequence( void createPrimitive2DSequence(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment