From 61deef5cdf96cbfdd6ad45be49e80d597c00ca65 Mon Sep 17 00:00:00 2001
From: QuakeGod <QuakeGod@sina.com>
Date: 星期二, 24 十二月 2024 08:37:21 +0800
Subject: [PATCH] 2024-12-24

---
 MyLib/MHashINI/MHash.hpp |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/MyLib/MHashINI/MHash.hpp b/MyLib/MHashINI/MHash.hpp
index 7685a13..f182a29 100644
--- a/MyLib/MHashINI/MHash.hpp
+++ b/MyLib/MHashINI/MHash.hpp
@@ -164,16 +164,16 @@
 	Hashelement OverFlow;
 public:
 
-	Hash::~Hash()
+	~Hash()
 	{
 	}
 
-	Hash::Hash(void)
+	Hash(void)
 	{
 		TotalKey=0;
 		OverFlow = _T("OverFlow");
 	};
-	Hash::Hash(CString thisName)
+	Hash(CString thisName)
 	{
 		TotalKey=0;
 		this->Name=thisName;
@@ -237,12 +237,12 @@
 		if (index == -1) return false;
 		else return true;
 	}
-	Hashelement & Hash::operator [] (const char * str)
+	Hashelement & operator [] (const char * str)
 	{
 		CString s1(str);
 		return this->operator [] (s1);
 	};
-	Hashelement & Hash::operator [] (CString s)
+	Hashelement & operator [] (CString s)
 	{
 		int left = 0;
 		int right = TotalKey - 1;
@@ -287,7 +287,7 @@
 
 		return elements[index];
 	};
-	Hashelement & Hash::operator [] (int k)
+	Hashelement & operator [] (int k)
 	{
 		return elements[k];
 	};
@@ -439,7 +439,7 @@
 		}
 		return nCount;
 	}
-	int Hash::SaveToFile(CString FilePathName,CString Section)
+	int SaveToFile(CString FilePathName,CString Section)
 	{
 		int i;
 		CString Key,Value;
@@ -457,7 +457,7 @@
 		return 1;
 	};
 
-	int Hash::LoadFromFile(CString FilePathName,CString Section)
+	int LoadFromFile(CString FilePathName,CString Section)
 	{
 		CString Key;
 		CString value,value1,value2;
@@ -820,7 +820,7 @@
 	for (int i=0; i<h2.TotalKey; ++i)
 	{
 		CString key = *(h2.elements[i].Key);
-		CString value1 = h1[key];
+		CString value1 = *(h1[key].Value);
 		CString value2 = *(h2.elements[i].Value);
 		if (value1.GetLength()>256 || value2.GetLength()>256)
 		{

--
Gitblit v1.9.1