diff options
author | KUDr <KUDr@openttd.org> | 2007-07-21 13:45:15 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-07-21 13:45:15 +0000 |
commit | fc58c73bc5e1d9c8ff64fca878d93ef4be1623bd (patch) | |
tree | 2c35f6c88c968b199d641414707e3a97c76fc5ac /src/misc | |
parent | 1f693e8ce81ae8761287d45771785d65dd9d87fa (diff) | |
download | openttd-fc58c73bc5e1d9c8ff64fca878d93ef4be1623bd.tar.xz |
(svn r10646) -Cleanup: AutoPtrT<>::Release() renamed to Detach()
-better describes what it does
-was inconsistent with CCountedPtr<>::Release()
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/autoptr.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/autoptr.hpp b/src/misc/autoptr.hpp index 3719a51f1..edb7c10c6 100644 --- a/src/misc/autoptr.hpp +++ b/src/misc/autoptr.hpp @@ -45,7 +45,7 @@ public: } /** give-up ownership and NULLify the raw pointer */ - FORCEINLINE T* Release() + FORCEINLINE T* Detach() { T* p = m_p; m_p = NULL; |