mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
This commit is contained in:
parent
ae957baa98
commit
ca4940622c
550 changed files with 10253 additions and 10248 deletions
|
@ -52,12 +52,12 @@ public:
|
|||
};
|
||||
|
||||
struct LastAccess {
|
||||
time_t _lastAccess;
|
||||
LastAccess(time_t lastAccess):_lastAccess(lastAccess) {}
|
||||
time_t lastAccess_;
|
||||
LastAccess(time_t lastAccess):lastAccess_(lastAccess) {}
|
||||
|
||||
time_t getLastAccess() const
|
||||
{
|
||||
return _lastAccess;
|
||||
return lastAccess_;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@ -120,7 +120,7 @@ void a2functionalTest::testLeastRecentAccess()
|
|||
}
|
||||
std::sort(v.begin(), v.end(), LeastRecentAccess<LastAccess>());
|
||||
for(int i = 0; i < 100; ++i) {
|
||||
CPPUNIT_ASSERT_EQUAL((time_t)i, v[i]._lastAccess);
|
||||
CPPUNIT_ASSERT_EQUAL((time_t)i, v[i].lastAccess_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue