~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_directory.cc

  • Committer: Brian Aker
  • Date: 2011-02-12 06:13:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212061332-a5dtetim82r6vvls
Merge in session up and out of sql_select.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 *   Implementation of CachedDirectory class.
26
26
 */
27
27
 
28
 
#include <config.h>
 
28
#include "config.h"
29
29
 
30
 
#include <drizzled/definitions.h>
 
30
#include "drizzled/definitions.h"
31
31
 
32
32
#include <sys/types.h>
33
33
#include <sys/stat.h>
36
36
#include <strings.h>
37
37
#include <limits.h>
38
38
 
39
 
#include <drizzled/cached_directory.h>
 
39
#include "drizzled/cached_directory.h"
40
40
 
41
41
using namespace std;
42
42
 
78
78
 
79
79
CachedDirectory::~CachedDirectory()
80
80
{
81
 
  for (Entries::iterator iter= entries.begin(); iter != entries.end(); ++iter)
 
81
  for (Entries::iterator p= entries.begin(); p != entries.end(); ++p)
82
82
  {
83
 
    delete *iter;
 
83
    if (*p)
 
84
      delete *p;
84
85
  }
85
86
  entries.clear();
86
87
}