Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: ppapi/shared_impl/scoped_pp_resource.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/resource_var.cc ('k') | ppapi/shared_impl/scoped_pp_var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/scoped_pp_resource.cc
diff --git a/ppapi/shared_impl/scoped_pp_resource.cc b/ppapi/shared_impl/scoped_pp_resource.cc
index 45a1ad77f03e68ab59c92af921e0fa49a0dbea41..b842b56d8754d1c9f6891f856c522c5ad4023f79 100644
--- a/ppapi/shared_impl/scoped_pp_resource.cc
+++ b/ppapi/shared_impl/scoped_pp_resource.cc
@@ -10,16 +10,14 @@
namespace ppapi {
-ScopedPPResource::ScopedPPResource() : id_(0) {
-}
+ScopedPPResource::ScopedPPResource() : id_(0) {}
ScopedPPResource::ScopedPPResource(PP_Resource resource) : id_(resource) {
CallAddRef();
}
ScopedPPResource::ScopedPPResource(const PassRef&, PP_Resource resource)
- : id_(resource) {
-}
+ : id_(resource) {}
ScopedPPResource::ScopedPPResource(Resource* resource)
: id_(resource ? resource->GetReference() : 0) {
@@ -31,9 +29,7 @@ ScopedPPResource::ScopedPPResource(const ScopedPPResource& other)
CallAddRef();
}
-ScopedPPResource::~ScopedPPResource() {
- CallRelease();
-}
+ScopedPPResource::~ScopedPPResource() { CallRelease(); }
ScopedPPResource& ScopedPPResource::operator=(PP_Resource resource) {
if (id_ == resource)
« no previous file with comments | « ppapi/shared_impl/resource_var.cc ('k') | ppapi/shared_impl/scoped_pp_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698