From ca8e5e38afce08de677361a429f0c70696a9958f Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Thu, 6 Nov 2014 11:27:14 +0100 Subject: [PATCH] Style fix * include/abg-ir.h (class location): Remove useless white space. * src/abg-writer.cc (type_has_existing_id): Use type_base_sptr rather than shared_ptr. (write_template_tparameter): Use template_tparameter_sptr rather than shared_ptr. Signed-off-by: Dodji Seketeli --- include/abg-ir.h | 2 +- src/abg-writer.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/abg-ir.h b/include/abg-ir.h index 30970d0c..eae03995 100644 --- a/include/abg-ir.h +++ b/include/abg-ir.h @@ -105,7 +105,7 @@ class location { unsigned value_; - location(unsigned v) : value_(v) { } + location(unsigned v) : value_(v) {} public: diff --git a/src/abg-writer.cc b/src/abg-writer.cc index 802dc521..dce7f996 100644 --- a/src/abg-writer.cc +++ b/src/abg-writer.cc @@ -137,7 +137,7 @@ public: /// @return true iff type has already been assigned an ID. bool - type_has_existing_id(shared_ptr type) const + type_has_existing_id(type_base_sptr type) const {return type_has_existing_id(type.get());} /// @return true iff type has already been assigned an ID. @@ -2050,9 +2050,9 @@ write_non_type_tparameter( /// @return true upon successful completion, false otherwise. static bool -write_template_tparameter -(const shared_ptr decl, - write_context& ctxt, unsigned indent) +write_template_tparameter (const template_tparameter_sptr decl, + write_context& ctxt, + unsigned indent) { if (!decl) return false; -- 2.43.5