OSDN Git Service

PATCH: [ 1373020 ] Carry unicoding, codepage, & file path together
authorPerry Rapp <elsapo@users.sourceforge.net>
Sat, 10 Dec 2005 19:42:41 +0000 (19:42 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Sat, 10 Dec 2005 19:42:41 +0000 (19:42 +0000)
Src/Changes.txt
Src/FileLocation.h [new file with mode: 0644]

index bc38695..316ada0 100644 (file)
@@ -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 (file)
index 0000000..770f528
--- /dev/null
@@ -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