From b207eb1140fd93a96f48b17c6c8c508a89566ae8 Mon Sep 17 00:00:00 2001 From: spx Date: Sat, 12 Nov 2011 16:20:41 +0000 Subject: [PATCH] Code cleanup. --- Library/Error.cpp | 11 +---------- Library/Error.h | 4 ++-- Library/Library.vcxproj | 11 ----------- Library/Library.vcxproj.filters | 3 --- Library/TintedImage.h | 2 +- 5 files changed, 4 insertions(+), 27 deletions(-) diff --git a/Library/Error.cpp b/Library/Error.cpp index 8ea8009e..97647867 100644 --- a/Library/Error.cpp +++ b/Library/Error.cpp @@ -19,13 +19,4 @@ #include "StdAfx.h" #include "Error.h" -/* -** GetString -** -** Returns the error string -** -*/ -const std::wstring& CError::GetString() -{ - return m_String; -} +// Leave this file as it is for history on Google code. diff --git a/Library/Error.h b/Library/Error.h index 7ca59fed..8825ac2f 100644 --- a/Library/Error.h +++ b/Library/Error.h @@ -26,9 +26,9 @@ class CError { public: CError(const std::wstring& String) : m_String(String) {} - CError(const WCHAR* String ) : m_String(String) {} + CError(const WCHAR* String) : m_String(String) {} - const std::wstring& GetString(); + const std::wstring& GetString() { return m_String; } private: std::wstring m_String; diff --git a/Library/Library.vcxproj b/Library/Library.vcxproj index b59cbbf2..1059f33c 100644 --- a/Library/Library.vcxproj +++ b/Library/Library.vcxproj @@ -307,17 +307,6 @@ MaxSpeed Use - - Disabled - EnableFastChecks - Use - Disabled - EnableFastChecks - MaxSpeed - Use - MaxSpeed - Use - Disabled EnableFastChecks diff --git a/Library/Library.vcxproj.filters b/Library/Library.vcxproj.filters index 5fc2558e..7431d3a4 100644 --- a/Library/Library.vcxproj.filters +++ b/Library/Library.vcxproj.filters @@ -39,9 +39,6 @@ Source Files - - Source Files - Source Files diff --git a/Library/TintedImage.h b/Library/TintedImage.h index f72c215b..2d06c564 100644 --- a/Library/TintedImage.h +++ b/Library/TintedImage.h @@ -69,7 +69,7 @@ public: }; CTintedImage(const WCHAR* name = L"Image", const WCHAR** configArray = c_DefaultConfigArray, bool disableTransform = false); - virtual ~CTintedImage(); + ~CTintedImage(); void ReadConfig(CConfigParser& parser, const WCHAR* section);