mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-01 11:52:54 +01:00
ifdef auto_ptr
This commit is contained in:
@@ -257,12 +257,15 @@ protected:
|
||||
return new Preprocessor(proc, new std::ifstream(pp.getFileName().c_str()), pp.getFileName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void parse(const std::string& file)
|
||||
{
|
||||
logger().information("Preprocessing " + file);
|
||||
#ifndef POCO_ENABLE_CPP11
|
||||
std::auto_ptr<Preprocessor> pPreProc(preprocess(file));
|
||||
|
||||
#else
|
||||
std::unique_ptr<Preprocessor> pPreProc(preprocess(file));
|
||||
#endif // POCO_ENABLE_CPP11
|
||||
logger().information("Parsing " + file);
|
||||
if (pPreProc->stream().good())
|
||||
{
|
||||
@@ -271,7 +274,7 @@ protected:
|
||||
}
|
||||
else throw Poco::OpenFileException("cannot read from preprocessor");
|
||||
}
|
||||
|
||||
|
||||
int parseAll()
|
||||
{
|
||||
int errors = 0;
|
||||
|
||||
Reference in New Issue
Block a user