mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-29 23:08:13 +00:00
Return a reference to smart pointer for the void type node
This is just a small optimization in the passing * src/abg-ir.h (type_decl::get_void_type_decl): Return a reference to the smart pointer initially returned. * src/abg-ir.cc (type_decl::get_void_type_decl): Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
9b4d20db90
commit
5852910238
@ -1118,7 +1118,7 @@ public:
|
||||
location locus, const std::string& mangled_name = "",
|
||||
visibility vis = VISIBILITY_DEFAULT);
|
||||
|
||||
static type_decl_sptr
|
||||
static type_decl_sptr&
|
||||
get_void_type_decl();
|
||||
|
||||
static type_decl_sptr&
|
||||
|
@ -4645,7 +4645,7 @@ type_decl::type_decl(const std::string& name,
|
||||
/// Get a singleton representing a void type node.
|
||||
///
|
||||
/// @return the void type node.
|
||||
type_decl_sptr
|
||||
type_decl_sptr&
|
||||
type_decl::get_void_type_decl()
|
||||
{
|
||||
static type_decl_sptr void_type_decl;
|
||||
|
Loading…
Reference in New Issue
Block a user