astyle formatting
This commit is contained in:
parent
53956496b2
commit
398190460f
10
lib/check.h
10
lib/check.h
|
@ -159,14 +159,16 @@ private:
|
|||
|
||||
};
|
||||
|
||||
namespace std {
|
||||
/** compare the names of Check classes, used when sorting the Check descendants */
|
||||
template <> struct less<Check *> {
|
||||
namespace std
|
||||
{
|
||||
/** compare the names of Check classes, used when sorting the Check descendants */
|
||||
template <> struct less<Check *>
|
||||
{
|
||||
bool operator()(const Check *p1, const Check *p2) const
|
||||
{
|
||||
return (p1->name() < p2->name());
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
inline Check::Check(const std::string &aname)
|
||||
|
|
|
@ -72,10 +72,12 @@ private:
|
|||
|
||||
void instancesSorted()
|
||||
{
|
||||
for (std::list<Check *>::iterator i = Check::instances().begin(); i != Check::instances().end(); ++i) {
|
||||
for (std::list<Check *>::iterator i = Check::instances().begin(); i != Check::instances().end(); ++i)
|
||||
{
|
||||
std::list<Check *>::iterator j = i;
|
||||
++j;
|
||||
if (j != Check::instances().end()) {
|
||||
if (j != Check::instances().end())
|
||||
{
|
||||
ASSERT_EQUALS(true, (*i)->name() < (*j)->name());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue