mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 07:13:27 +02:00
use std::unique_ptr instead of std::auto_ptr if available
This commit is contained in:
parent
cae37d23fd
commit
2757bce0c3
@ -285,7 +285,11 @@ protected:
|
|||||||
p.setBaseName(clazz);
|
p.setBaseName(clazz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __cplusplus < 201103L
|
||||||
std::auto_ptr<CodeWriter> pCodeWriter(createCodeWriter(page, clazz));
|
std::auto_ptr<CodeWriter> pCodeWriter(createCodeWriter(page, clazz));
|
||||||
|
#else
|
||||||
|
std::unique_ptr<CodeWriter> pCodeWriter(createCodeWriter(page, clazz));
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!_outputDir.empty())
|
if (!_outputDir.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user