From c3ff558f935b149dc0375d9285f2d096d7e80a8f Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Wed, 4 Mar 2009 20:56:56 -0500 Subject: [PATCH] Inlined Data::QuickZap() --- ChangeLog | 1 + src/data.cc | 6 ------ src/data.h | 3 ++- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index bd32f22e..736969ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ Release: version 0.15 - 2009/01/?? Fortunately, these didn't affect my timeout testing. - added Data::QuickZap(), so that usb read errors don't return old data + - inlined Data::QuickZap() 2009/03/03 - applied Nicolas Vivien's opensync-0.4x API patch 2009/02/28 diff --git a/src/data.cc b/src/data.cc index 9498feeb..2a51e289 100644 --- a/src/data.cc +++ b/src/data.cc @@ -259,12 +259,6 @@ void Data::AppendHexString(const char *str) } } -/// set buffer to 0 size, but don't bother overwriting memory with 0 -void Data::QuickZap() -{ - m_datasize = 0; -} - /// set buffer to 0 and remove all data void Data::Zap() { diff --git a/src/data.h b/src/data.h index bdbf5e41..c5361cfa 100644 --- a/src/data.h +++ b/src/data.h @@ -68,7 +68,8 @@ public: void AppendHexString(const char *str); - void QuickZap(); + /// set buffer to 0 size, but don't bother overwriting memory with 0 + void QuickZap() { m_datasize = 0; } void Zap(); // does a memset too Data& operator=(const Data &other); -- 2.11.4.GIT