From bbf737754419e545a535f109723f860453d8f2ab Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Mon, 22 Sep 2008 23:25:29 +0000 Subject: [PATCH] Removed unused field "m_szName". Added virtual destructor. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@617 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/DataReader.cpp | 6 ++++-- Source/Plugins/Plugin_VideoOGL/Src/DataReader.h | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/DataReader.cpp b/Source/Plugins/Plugin_VideoOGL/Src/DataReader.cpp index d1a4b9788e..e74e0f4c56 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/DataReader.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/DataReader.cpp @@ -28,10 +28,13 @@ extern u16 FAKE_ReadFifo16(); extern u32 FAKE_ReadFifo32(); extern int FAKE_GetPosition(); extern void FAKE_SkipFifo(u32 skip); + +IDataReader::~IDataReader() +{ +} CDataReader_Fifo::CDataReader_Fifo(void) { - m_szName = "CDataReader_Fifo"; } u8 CDataReader_Fifo::Read8(void) @@ -68,7 +71,6 @@ CDataReader_Memory::CDataReader_Memory(u32 _uAddress) : m_uReadAddress(_uAddress) { //m_pMemory = g_VideoInitialize.pGetMemoryPointer(0x00); - m_szName = "CDataReader_Memory"; } u32 CDataReader_Memory::GetReadAddress() diff --git a/Source/Plugins/Plugin_VideoOGL/Src/DataReader.h b/Source/Plugins/Plugin_VideoOGL/Src/DataReader.h index 3667a6b17e..dbd955f42a 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/DataReader.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/DataReader.h @@ -23,9 +23,9 @@ // ================================================================================================= class IDataReader -{ -protected: - const char *m_szName; +{ +protected: + virtual ~IDataReader(); public: virtual void Skip(u32) = 0;