OSDN Git Service

Cleanup. Remove unused return value from method.
authorKimmo Varis <kimmov@gmail.com>
Mon, 11 Jan 2010 20:27:43 +0000 (20:27 +0000)
committerKimmo Varis <kimmov@gmail.com>
Mon, 11 Jan 2010 20:27:43 +0000 (20:27 +0000)
Src/DiffWrapper.cpp
Src/DiffWrapper.h

index 3f188b0..0249662 100644 (file)
@@ -982,13 +982,14 @@ String CDiffWrapper::FormatSwitchString()
 }
 
 /**
- * @brief Enables/disables patch-file appending (files with same filename are appended)
+ * @brief Enables/disables patch-file appending.
+ * If the file for patch already exists then the patch will be appended to
+ * existing file.
+ * @param [in] bAppendFiles If TRUE patch will be appended to existing file.
  */
-BOOL CDiffWrapper::SetAppendFiles(BOOL bAppendFiles)
+void CDiffWrapper::SetAppendFiles(BOOL bAppendFiles)
 {
-       BOOL temp = m_bAppendFiles;
        m_bAppendFiles = bAppendFiles;
-       return temp;
 }
 
 /**
index 8c7b0a9..15db7a3 100644 (file)
@@ -157,7 +157,7 @@ public:
        void SetPatchOptions(const PATCHOPTIONS *options);
        void SetDetectMovedBlocks(bool bDetectMovedBlocks);
        bool GetDetectMovedBlocks() { return (m_pMovedLines != NULL); }
-       BOOL SetAppendFiles(BOOL bAppendFiles);
+       void SetAppendFiles(BOOL bAppendFiles);
        void SetPaths(const String &filepath1, const String &filepath2, BOOL tempPaths);
        void SetAlternativePaths(const String &altPath1, const String &altPath2);
        void SetCodepage(int codepage) { m_codepage = codepage; }