Kaydet (Commit) b48e9079 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

vcl: std::auto_ptr -> std::unique_ptr

Change-Id: I5a08186b465b15311c63784506a0ca0e119286e2
üst 0b23ac2c
...@@ -121,7 +121,7 @@ namespace vcl ...@@ -121,7 +121,7 @@ namespace vcl
struct MnemonicEngine_Data; struct MnemonicEngine_Data;
class VCL_DLLPUBLIC MnemonicEngine class VCL_DLLPUBLIC MnemonicEngine
{ {
::std::auto_ptr< MnemonicEngine_Data > m_pData; ::std::unique_ptr< MnemonicEngine_Data > m_pData;
public: public:
MnemonicEngine( IMnemonicEntryList& _rEntryList ); MnemonicEngine( IMnemonicEntryList& _rEntryList );
......
...@@ -76,7 +76,7 @@ namespace vcl ...@@ -76,7 +76,7 @@ namespace vcl
void SetEnabled( const bool& b ); void SetEnabled( const bool& b );
private: private:
::std::auto_ptr< QuickSelectionEngine_Data > m_pData; ::std::unique_ptr< QuickSelectionEngine_Data > m_pData;
bool bEnabled; bool bEnabled;
private: private:
......
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
static ResultT exec( FuncT const& func ) static ResultT exec( FuncT const& func )
{ {
typedef GenericSolarThreadExecutor<FuncT, ResultT> ExecutorT; typedef GenericSolarThreadExecutor<FuncT, ResultT> ExecutorT;
::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); ::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) );
pExecutor->execute(); pExecutor->execute();
if (pExecutor->m_exc.hasValue()) if (pExecutor->m_exc.hasValue())
::cppu::throwException( pExecutor->m_exc ); ::cppu::throwException( pExecutor->m_exc );
...@@ -108,7 +108,7 @@ public: ...@@ -108,7 +108,7 @@ public:
static void exec( FuncT const& func ) static void exec( FuncT const& func )
{ {
typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT; typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT;
::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); ::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) );
pExecutor->execute(); pExecutor->execute();
if (pExecutor->m_exc.hasValue()) if (pExecutor->m_exc.hasValue())
::cppu::throwException( pExecutor->m_exc ); ::cppu::throwException( pExecutor->m_exc );
......
...@@ -102,7 +102,7 @@ namespace vcl ...@@ -102,7 +102,7 @@ namespace vcl
ControlTextRenderer& operator=( const ControlTextRenderer& ); // never implemented ControlTextRenderer& operator=( const ControlTextRenderer& ); // never implemented
private: private:
::std::auto_ptr< ReferenceDeviceTextLayout > m_pImpl; ::std::unique_ptr< ReferenceDeviceTextLayout > m_pImpl;
}; };
} // namespace vcl } // namespace vcl
......
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