summaryrefslogtreecommitdiffstats
path: root/src/dirdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirdef.h')
-rw-r--r--src/dirdef.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/dirdef.h b/src/dirdef.h
index 0d73dd3..399e0c2 100644
--- a/src/dirdef.h
+++ b/src/dirdef.h
@@ -1,12 +1,10 @@
/******************************************************************************
*
- *
- *
- * Copyright (C) 1997-2015 by Dimitri van Heesch.
+ * Copyright (C) 1997-2020 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -21,7 +19,7 @@
#include "sortdict.h"
#include "definition.h"
-#include <deque>
+#include <vector>
#include <qglobal.h>
#include <qcstring.h>
@@ -36,17 +34,9 @@ class FTextStream;
class DirDef;
/** A list of directories. */
-typedef std::deque<DirDef*> DirList;
-
-/** Compare referenced objects. */
-bool compareDirDefs(const DirDef *item1,const DirDef *item2);
+typedef std::vector<DirDef*> DirList;
-/**
- * Sorts the list by the result of the compareDirDefs() function.
- * @param list in which item to be inserted
- * @param newItem to be inserted
- */
-void sortInDirList(DirList &list, DirDef *const newItem);
+bool compareDirDefs(const DirDef *item1, const DirDef *item2);
/** A model of a directory symbol. */
class DirDef : virtual public Definition
@@ -90,7 +80,7 @@ class DirDef : virtual public Definition
};
/** Class representing a pair of FileDef objects */
-class FilePair
+class FilePair
{
public:
FilePair(FileDef *src,FileDef *dst) : m_src(src), m_dst(dst) {}
@@ -133,7 +123,7 @@ class UsedDir
class DirRelation
{
public:
- DirRelation(const QCString &name,const DirDef *src,UsedDir *dst)
+ DirRelation(const QCString &name,const DirDef *src,UsedDir *dst)
: m_name(name), m_src(src), m_dst(dst) {}
const DirDef *source() const { return m_src; }
UsedDir *destination() const { return m_dst; }