Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 #include PRECOMPILED_HEADER_FILE | |
2 | |
Oleksandr
2013/05/27 15:32:26
It is usually just #include stdafx.h. No need to u
| |
3 #include "AutoHandle.h" | |
4 | |
5 AutoHandle::AutoHandle() | |
6 { | |
7 } | |
8 | |
9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) | |
10 { | |
11 } | |
12 | |
13 AutoHandle::~AutoHandle() | |
14 { | |
15 CloseHandle(handle); | |
16 } | |
17 | |
18 HANDLE AutoHandle::get() | |
Wladimir Palant
2013/05/27 09:51:55
I would rather do this as AutoHandle::operator HAN
Felix Dahlke
2013/06/04 09:50:40
That's actually nicer, will do.
| |
19 { | |
20 return handle; | |
21 } | |
OLD | NEW |