aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/curdir.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-10-22 14:00:01 +0000
committermarha <marha@users.sourceforge.net>2010-10-22 14:00:01 +0000
commitd74d9f4e60e48260ff1fad3ff00aaf000f111a66 (patch)
treefcf6ceee3ec04dc8521bbf12453d95cbe187dc40 /tools/mhmake/src/curdir.h
parent5a05343a8071f769d092d5bb6bdea9adf65eda9c (diff)
downloadvcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.gz
vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.bz2
vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.zip
Increased gnu make compatibility
Optimised
Diffstat (limited to 'tools/mhmake/src/curdir.h')
-rw-r--r--tools/mhmake/src/curdir.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/mhmake/src/curdir.h b/tools/mhmake/src/curdir.h
index 169dca8a7..56f835fbe 100644
--- a/tools/mhmake/src/curdir.h
+++ b/tools/mhmake/src/curdir.h
@@ -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
@@ -21,26 +21,25 @@
#ifndef __CURDIR_H
#define __CURDIR_H
-#include "refptr.h"
class fileinfo;
class curdir
{
public:
- class initcurdir : public refptr<fileinfo>
+ class initcurdir
{
+ friend curdir;
+ const fileinfo *m_pDir;
public:
- initcurdir &operator=(const refptr<fileinfo>& Src);
-
initcurdir();
};
private:
static initcurdir m_pCurrentDir;
public:
- static refptr<fileinfo> &GetCurDir()
+ static const fileinfo* GetCurDir()
{
- return m_pCurrentDir;
+ return m_pCurrentDir.m_pDir;
}
};