From 58e6355695e7852864aec255cab539c4ad3d77b7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 May 2018 17:58:09 +0200 Subject: [PATCH] Rename wxTarEntryPtr_ to wxTarEntryPtr Remove the unusual underscore at the end of the type and use a single wxDEFINE_SCOPED_PTR_TYPE() macro instead of 2 of them to simplify code. --- src/common/tarstrm.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/tarstrm.cpp b/src/common/tarstrm.cpp index a38e3f0715..b8820febd6 100644 --- a/src/common/tarstrm.cpp +++ b/src/common/tarstrm.cpp @@ -639,8 +639,7 @@ void wxTarEntry::SetMode(int mode) ///////////////////////////////////////////////////////////////////////////// // Input stream -wxDECLARE_SCOPED_PTR(wxTarEntry, wxTarEntryPtr_) -wxDEFINE_SCOPED_PTR (wxTarEntry, wxTarEntryPtr_) +wxDEFINE_SCOPED_PTR_TYPE(wxTarEntry) wxTarInputStream::wxTarInputStream(wxInputStream& stream, wxMBConv& conv /*=wxConvLocal*/) @@ -683,7 +682,7 @@ wxTarEntry *wxTarInputStream::GetNextEntry() if (!IsOk()) return NULL; - wxTarEntryPtr_ entry(new wxTarEntry); + wxTarEntryPtr entry(new wxTarEntry); entry->SetMode(GetHeaderNumber(TAR_MODE)); entry->SetUserId(GetHeaderNumber(TAR_UID)); @@ -1099,7 +1098,7 @@ wxTarOutputStream::~wxTarOutputStream() bool wxTarOutputStream::PutNextEntry(wxTarEntry *entry) { - wxTarEntryPtr_ e(entry); + wxTarEntryPtr e(entry); if (!CloseEntry()) return false;