aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/curdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/src/curdir.cpp')
-rw-r--r--tools/mhmake/src/curdir.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/mhmake/src/curdir.cpp b/tools/mhmake/src/curdir.cpp
index 094093a9b..4b905a327 100644
--- a/tools/mhmake/src/curdir.cpp
+++ b/tools/mhmake/src/curdir.cpp
@@ -1,6 +1,6 @@
/* This file is part of mhmake.
*
- * Copyright (C) 2001-2009 Marc Haesen
+ * Copyright (C) 2001-2010 marha@sourceforge.net
*
* Mhmake is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,20 +24,14 @@
#include "curdir.h"
#include "util.h"
-set<refptr<fileinfo>,less_refptrfileinfo> g_FileInfos; // declare here since it is important that it is constructed before m_pcurrentdir
+fileinfos g_FileInfos; // declare here since it is important that it is constructed before m_pcurrentdir
curdir::initcurdir curdir::m_pCurrentDir;
///////////////////////////////////////////////////////////////////////////////
-curdir::initcurdir &curdir::initcurdir::operator=(const refptr<fileinfo>& Src)
-{
- return (curdir::initcurdir&)refptr<fileinfo>::operator=(Src);
-}
-
-///////////////////////////////////////////////////////////////////////////////
curdir::initcurdir::initcurdir()
{
char CurDir[MAX_PATH];
getcwd(CurDir,MAX_PATH);
string strCurDir=CurDir;
- *this=GetAbsFileInfo(NormalizePathName(strCurDir));
+ m_pDir=GetAbsFileInfo(NormalizePathName(strCurDir));
}