From affac9413bd103f7a9bb1cbff947cdf106693cea Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Wed, 24 Apr 2013 21:40:27 +0000 Subject: Cleanup: Use scoped_ptr where appropriate in DwarfCUToModule. Review URL: https://breakpad.appspot.com/572002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1164 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/dwarf_cu_to_module.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/common/dwarf_cu_to_module.h') diff --git a/src/common/dwarf_cu_to_module.h b/src/common/dwarf_cu_to_module.h index 4f466ace..ab95485f 100644 --- a/src/common/dwarf_cu_to_module.h +++ b/src/common/dwarf_cu_to_module.h @@ -46,6 +46,7 @@ #include "common/dwarf/bytereader.h" #include "common/dwarf/dwarf2diehandler.h" #include "common/dwarf/dwarf2reader.h" +#include "common/scoped_ptr.h" #include "common/using_std_string.h" namespace google_breakpad { @@ -117,7 +118,7 @@ class DwarfCUToModule: public dwarf2reader::RootDIEHandler { const bool handle_inter_cu_refs_; // Inter-compilation unit data used internally by the handlers. - FilePrivate *file_private_; + scoped_ptr file_private_; }; // An abstract base class for handlers that handle DWARF line data @@ -291,10 +292,10 @@ class DwarfCUToModule: public dwarf2reader::RootDIEHandler { LineToModuleHandler *line_reader_; // This compilation unit's context. - CUContext *cu_context_; + scoped_ptr cu_context_; // A context for our children. - DIEContext *child_context_; + scoped_ptr child_context_; // True if this compilation unit has source line information. bool has_source_line_info_; -- cgit v1.2.1