Fixed various errors/warnings reported by cppcheck:
* memory leaks * resource leaks * added const's to getters * removed a few reundant conditions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ struct file_cache_ref {
|
||||
last_access[index] = isWrite ? -access : access;
|
||||
}
|
||||
|
||||
inline off_t LastAccess(int32 index, bool isWrite)
|
||||
inline off_t LastAccess(int32 index, bool isWrite) const
|
||||
{
|
||||
return isWrite ? -last_access[index] : last_access[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user