mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
synced with main repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Util/src/PropertyFileConfiguration.cpp#9 $
|
||||
// $Id: //poco/svn/Util/src/PropertyFileConfiguration.cpp#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/FileStream.h"
|
||||
#include "Poco/LineEndingConverter.h"
|
||||
#include <cctype>
|
||||
|
||||
|
||||
@@ -109,7 +110,9 @@ void PropertyFileConfiguration::save(const std::string& path) const
|
||||
Poco::FileOutputStream ostr(path);
|
||||
if (ostr.good())
|
||||
{
|
||||
save(ostr);
|
||||
Poco::OutputLineEndingConverter lec(ostr);
|
||||
save(lec);
|
||||
lec.flush();
|
||||
ostr.flush();
|
||||
if (!ostr.good()) throw Poco::WriteFileException(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user