Permalink
Browse files

o Be consistent: forward class became defined as struct.

  • Loading branch information...
1 parent b29c83d commit 10e003ad275cf54feaf7c93c0ab88dac3fc2b2e7 @hzeller committed Sep 26, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 file-handler-cache.cc
  2. +4 −4 file-handler-cache.h
View
@@ -1,7 +1,7 @@
// Folve - A fuse filesystem that convolves audio files on-the-fly.
//
// Copyright (C) 2012 Henner Zeller <h.zeller@acm.org>
-//
+//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
View
@@ -2,7 +2,7 @@
// Folve - A fuse filesystem that convolves audio files on-the-fly.
//
// Copyright (C) 2012 Henner Zeller <h.zeller@acm.org>
-//
+//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
@@ -57,11 +57,11 @@ class FileHandlerCache {
// If there was already an object stored under that key, the existing one
// is returned instead and the passed object discarded.
FileHandler *InsertPinned(const std::string &key, FileHandler *handler);
-
+
// Find an object in this map and pin it down so that it is not evicted.
// You've to Unpin() it after use.
FileHandler *FindAndPin(const std::string &key);
-
+
// Unpin object. If the last object is unpinned, the PinnedMap may decide
// to delete it later (though typically will keep it around for a while).
void Unpin(const std::string &key);
@@ -70,7 +70,7 @@ class FileHandlerCache {
void GetStats(std::vector<HandlerStats> *stats);
private:
- class Entry;
+ struct Entry;
struct CompareAge;
typedef std::map<std::string, Entry*> CacheMap;

0 comments on commit 10e003a

Please sign in to comment.