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

Side by Side Diff: compiled/intrusive_ptr.h

Issue 29613611: Noissue - fix debug build (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: Created Nov. 21, 2017, 12:19 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
« no previous file with comments | « compile ('k') | compiled/subscription/UserDefinedSubscription.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 // Distributed under the Boost Software License, Version 1.0. (See 22 // Distributed under the Boost Software License, Version 1.0. (See
23 // accompanying file LICENSE_1_0.txt or copy at 23 // accompanying file LICENSE_1_0.txt or copy at
24 // http://www.boost.org/LICENSE_1_0.txt) 24 // http://www.boost.org/LICENSE_1_0.txt)
25 25
26 #pragma once 26 #pragma once
27 27
28 #include <algorithm> 28 #include <algorithm>
29 #include <type_traits> 29 #include <type_traits>
30 30
31 #include "debug.h" 31 #include "debug.h"
32 #include "String.h"
32 33
33 class ref_counted 34 class ref_counted
34 { 35 {
35 public: 36 public:
36 void AddRef() 37 void AddRef()
37 { 38 {
38 mRefCount++; 39 mRefCount++;
39 } 40 }
40 41
41 void ReleaseRef() 42 void ReleaseRef()
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 inline bool operator==(const T* a, const intrusive_ptr<U>& b) 211 inline bool operator==(const T* a, const intrusive_ptr<U>& b)
211 { 212 {
212 return a == b.get(); 213 return a == b.get();
213 } 214 }
214 215
215 template<typename T, typename U> 216 template<typename T, typename U>
216 inline bool operator!=(const T* a, intrusive_ptr<U> const& b) 217 inline bool operator!=(const T* a, intrusive_ptr<U> const& b)
217 { 218 {
218 return a != b.get(); 219 return a != b.get();
219 } 220 }
OLDNEW
« no previous file with comments | « compile ('k') | compiled/subscription/UserDefinedSubscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld