removed stupid Ini custom sorting rule .

This commit is contained in:
Zero Fanker 2024-04-16 23:06:36 -04:00
parent 5cc2b6067d
commit 8684cbdae5
3 changed files with 1 additions and 28 deletions

View file

@ -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;
//////////////////////////////////////////////////////////////////////

View file

@ -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

View file

@ -39,10 +39,6 @@ static char THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
typedef map<CString, CString, SortDummy> OURMAP;
void DoEvents()
{
/*MSG msg;