Skip to content

Commit

Permalink
Move class out of header
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Jul 14, 2024
1 parent b6d89b9 commit 865433d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
16 changes: 16 additions & 0 deletions src/ini/iniHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@
# include <windows.h>
#endif

//

template<class T>
class compare
{
private:
SID_STRING s;

public:
compare(const TCHAR *str) : s(str) {}

bool operator () (T const &p) { return s.compare(p.first) == 0; }
};

//

iniHandler::iniHandler() :
changed(false)
{}
Expand Down
13 changes: 0 additions & 13 deletions src/ini/iniHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ class iniHandler

class parseError {};

private:
template<class T>
class compare
{
private:
SID_STRING s;

public:
compare(const TCHAR *str) : s(str) {}

bool operator () (T const &p) { return s.compare(p.first) == 0; }
};

private:
sections_t sections;

Expand Down

0 comments on commit 865433d

Please sign in to comment.