mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -24,7 +24,10 @@ namespace Poco {
|
||||
namespace Net {
|
||||
|
||||
|
||||
/// PartStore
|
||||
//
|
||||
// PartStore
|
||||
//
|
||||
|
||||
|
||||
PartStore::PartStore(const std::string& mediaType): PartSource(mediaType)
|
||||
{
|
||||
@@ -36,7 +39,10 @@ PartStore::~PartStore()
|
||||
}
|
||||
|
||||
|
||||
/// FilePartStore
|
||||
//
|
||||
// FilePartStore
|
||||
//
|
||||
|
||||
|
||||
FilePartStore::FilePartStore(const std::string& content, const std::string& mediaType, const std::string& filename):
|
||||
PartStore(mediaType),
|
||||
@@ -56,7 +62,7 @@ FilePartStore::~FilePartStore()
|
||||
_fstr.close();
|
||||
File(_path).remove();
|
||||
}
|
||||
catch (Exception&)
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user