mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Removed duplicate Lua header files.
Code cleanup.
This commit is contained in:
		| @@ -716,17 +716,21 @@ double CConfigParser::ReadFloat(LPCTSTR section, LPCTSTR key, double defValue) | ||||
| std::vector<Gdiplus::REAL> CConfigParser::ReadFloats(LPCTSTR section, LPCTSTR key) | ||||
| { | ||||
| 	std::vector<Gdiplus::REAL> result; | ||||
| 	std::wstring tmp = ReadString(section, key, L""); | ||||
| 	if (!tmp.empty() && tmp[tmp.length() - 1] != L';') | ||||
| 	const std::wstring& string = ReadString(section, key, L""); | ||||
| 	if (!string.empty()) | ||||
| 	{ | ||||
| 		tmp += L";"; | ||||
| 	} | ||||
| 		std::wstring tmp = string; | ||||
| 		if (tmp[tmp.length() - 1] != L';') | ||||
| 		{ | ||||
| 			tmp += L";"; | ||||
| 		} | ||||
|  | ||||
| 	// Tokenize and parse the floats | ||||
| 	std::vector<std::wstring> tokens = Tokenize(tmp, L";"); | ||||
| 	for (size_t i = 0; i < tokens.size(); ++i) | ||||
| 	{ | ||||
| 		result.push_back((Gdiplus::REAL)ParseDouble(tokens[i], 0)); | ||||
| 		// Tokenize and parse the floats | ||||
| 		std::vector<std::wstring> tokens = Tokenize(tmp, L";"); | ||||
| 		for (size_t i = 0; i < tokens.size(); ++i) | ||||
| 		{ | ||||
| 			result.push_back((Gdiplus::REAL)ParseDouble(tokens[i], 0)); | ||||
| 		} | ||||
| 	} | ||||
| 	return result; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 spx
					spx