fixed: Item::Item(const Item & i) should clear the item table
git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@330 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
+1
-3
@@ -374,7 +374,7 @@ void Pattern::ReadFile(const wchar_t * name, std::wstring & result)
|
||||
{
|
||||
if( !IsFileCorrect(name) )
|
||||
{
|
||||
CreateMsg(result, L"incorrect file name:", name);
|
||||
CreateMsg(result, L"incorrect file name: ", name);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -388,7 +388,6 @@ void Pattern::ReadFile(const wchar_t * name, std::wstring & result)
|
||||
|
||||
|
||||
|
||||
|
||||
bool Pattern::ReadFileFromDir(const std::wstring & dir, const wchar_t * name, std::wstring & result)
|
||||
{
|
||||
if( dir.empty() )
|
||||
@@ -397,7 +396,6 @@ bool Pattern::ReadFileFromDir(const std::wstring & dir, const wchar_t * name, st
|
||||
file_name = dir;
|
||||
file_name += '/';
|
||||
file_name += name;
|
||||
|
||||
WideToUTF8(file_name, afile_name);
|
||||
|
||||
std::ifstream file(afile_name.c_str());
|
||||
|
||||
Reference in New Issue
Block a user