Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/shared/AutoHandle.cpp

Issue 10824027: Implement better marshaling (Closed)
Patch Set: Created May 31, 2013, 8:26 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include PRECOMPILED_HEADER_FILE 1 #include "..\engine\stdafx.h"
2 2
3 #include "AutoHandle.h" 3 #include "AutoHandle.h"
4 4
5 AutoHandle::AutoHandle() 5 AutoHandle::AutoHandle()
6 { 6 {
7 } 7 }
8 8
9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) 9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle)
10 { 10 {
11 } 11 }
12 12
13 AutoHandle::~AutoHandle() 13 AutoHandle::~AutoHandle()
14 { 14 {
15 CloseHandle(handle); 15 CloseHandle(handle);
16 } 16 }
17 17
18 HANDLE AutoHandle::get() 18 HANDLE AutoHandle::get()
19 { 19 {
20 return handle; 20 return handle;
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld