diff options
author | marha <marha@users.sourceforge.net> | 2010-10-22 14:00:01 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-22 14:00:01 +0000 |
commit | d74d9f4e60e48260ff1fad3ff00aaf000f111a66 (patch) | |
tree | fcf6ceee3ec04dc8521bbf12453d95cbe187dc40 /tools/mhmake/src/curdir.cpp | |
parent | 5a05343a8071f769d092d5bb6bdea9adf65eda9c (diff) | |
download | vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.gz vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.bz2 vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.zip |
Increased gnu make compatibility
Optimised
Diffstat (limited to 'tools/mhmake/src/curdir.cpp')
-rw-r--r-- | tools/mhmake/src/curdir.cpp | 12 |
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));
}
|