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