From 03fec0f8ea4f8cd1678cdc185a63663832f4aca9 Mon Sep 17 00:00:00 2001 From: Perry Rapp Date: Sat, 10 Dec 2005 19:42:41 +0000 Subject: [PATCH] PATCH: [ 1373020 ] Carry unicoding, codepage, & file path together --- Src/Changes.txt | 1 + Src/FileLocation.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Src/FileLocation.h diff --git a/Src/Changes.txt b/Src/Changes.txt index bc3869530..316ada069 100644 --- a/Src/Changes.txt +++ b/Src/Changes.txt @@ -7,6 +7,7 @@ Src: DiffWrapper.cpp DiffWrapper.h DirScan.cpp DirView.cpp MainFrm.cpp MainFrm.h Merge.dsp MergeDoc.cpp MergeDoc.h Src\Common: RegKey.cpp + NEW Src\FileLocation.h 2005-12-09 Perry PATCH: [ 1188787 ] New Chinese translation rc file (from PATCH 1183476) diff --git a/Src/FileLocation.h b/Src/FileLocation.h new file mode 100644 index 000000000..770f528b9 --- /dev/null +++ b/Src/FileLocation.h @@ -0,0 +1,21 @@ +#ifndef FileLocation_included +#define FileLocation_included + +struct FileLocation +{ + CString filepath; + int unicoding; + int codepage; + FileLocation() : unicoding(-1), codepage(-1) + { + } + FileLocation(LPCTSTR path) : filepath(path), unicoding(-1), codepage(-1) + { + } +// Methods + void setPath(const CString & sFilePath) { this->filepath = sFilePath; } + +// Copy constructor & copy operator should do the obvious correct things +}; + +#endif // FileLocation_included -- 2.11.0