committed latest 1.3 snapshot

This commit is contained in:
Guenter Obiltschnig
2007-04-18 16:22:57 +00:00
parent a8332eaaf3
commit b7a945da93
94 changed files with 6724 additions and 329 deletions

View File

@@ -1,7 +1,7 @@
//
// FileStreamFactory.cpp
//
// $Id: //poco/Main/Foundation/src/FileStreamFactory.cpp#8 $
// $Id: //poco/Main/Foundation/src/FileStreamFactory.cpp#9 $
//
// Library: Foundation
// Package: URI
@@ -39,7 +39,7 @@
#include "Poco/Path.h"
#include "Poco/File.h"
#include "Poco/Exception.h"
#include <fstream>
#include "Poco/FileStream.h"
namespace Poco {
@@ -73,7 +73,7 @@ std::istream* FileStreamFactory::open(const Path& path)
File file(path);
if (!file.exists()) throw FileNotFoundException(path.toString());
std::ifstream* istr = new std::ifstream(Path::transcode(path.toString()).c_str(), std::ios::binary);
FileInputStream* istr = new FileInputStream(path.toString(), std::ios::binary);
if (!istr->good())
{
delete istr;