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

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

Issue 10774005: Avoid duplication between AdblockPlus and AdblockPlusEngine (Closed)
Patch Set: Created May 24, 2013, 3:48 p.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
(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 }
OLDNEW
« src/engine/main.cpp ('K') | « src/shared/AutoHandle.h ('k') | src/shared/Communication.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld