mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-05 03:01:42 -04:00
removed stupid Ini custom sorting rule .
This commit is contained in:
parent
5cc2b6067d
commit
8684cbdae5
3 changed files with 1 additions and 28 deletions
|
@ -42,8 +42,6 @@ const CIniFileSection CIniFile::EmptySection;
|
|||
const CString CIniFileSection::EmptyValue;
|
||||
|
||||
typedef map<CString, CIniFileSection>::iterator CIniI;
|
||||
typedef map<CString, CString, SortDummy>::iterator SI;
|
||||
typedef map<CString, int, SortDummy>::iterator SII;
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -40,26 +40,6 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
class SortDummy
|
||||
{
|
||||
public:
|
||||
bool operator()(const CString& x, const CString& y) const
|
||||
{
|
||||
// the length is more important than spelling (numbers!!!)...
|
||||
if (x.GetLength() < y.GetLength()) {
|
||||
return true;
|
||||
}
|
||||
if (x.GetLength() == y.GetLength()) {
|
||||
if (x < y) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CIniFileSection
|
||||
{
|
||||
static const CString EmptyValue;
|
||||
|
@ -216,9 +196,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
map<CString, int64_t, SortDummy> value_pos{};
|
||||
map<CString, int64_t> value_pos{};
|
||||
vector<std::pair<CString, CString>> value_pairs{};// sequenced
|
||||
mutable bool isRegistry{ false };
|
||||
};
|
||||
|
||||
class CIniFile
|
||||
|
|
|
@ -39,10 +39,6 @@ static char THIS_FILE[] = __FILE__;
|
|||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
typedef map<CString, CString, SortDummy> OURMAP;
|
||||
|
||||
|
||||
|
||||
void DoEvents()
|
||||
{
|
||||
/*MSG msg;
|
||||
|
|
Loading…
Add table
Reference in a new issue