OSDN Git Service

PATCH: [ 791263 ] Remove CStringEx from OpenDlg (and from WinMerge?)
authorKimmo Varis <kimmov@gmail.com>
Wed, 20 Aug 2003 15:04:34 +0000 (15:04 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 20 Aug 2003 15:04:34 +0000 (15:04 +0000)
Src/Merge.dsp
Src/OpenDlg.cpp
Src/readme.txt

index 4713e13..e5596cf 100644 (file)
@@ -579,10 +579,6 @@ SOURCE=.\StdAfx.cpp
 # End Source File
 # Begin Source File
 
-SOURCE=..\common\StringEx.cpp
-# End Source File
-# Begin Source File
-
 SOURCE=..\common\SuperComboBox.cpp
 # End Source File
 # Begin Source File
@@ -844,10 +840,6 @@ SOURCE=.\StdAfx.h
 # End Source File
 # Begin Source File
 
-SOURCE=..\common\StringEx.h
-# End Source File
-# Begin Source File
-
 SOURCE=..\common\SuperComboBox.h
 # End Source File
 # Begin Source File
index f8fdce6..da931f0 100644 (file)
 /////////////////////////////////////////////////////////////////////////////
 // OpenDlg.cpp : implementation file
 //
+// $Id$
 
 #include "stdafx.h"
 #include "Merge.h"
 #include "OpenDlg.h"
 #include "coretools.h"
-#include "StringEx.h"
 #include "paths.h"
 
 #ifdef _DEBUG
@@ -162,14 +162,12 @@ void COpenDlg::OnOK()
 
        // parse the extensions
        // replace all *. with .*\\.
-       int idx=0;
-       LPCTSTR pszSeps = _T("; |*%^&.,\\/<>:\"'`?\t\r\n");
-       CStringEx strExt(m_strExt);
-       strExt.TrimLeft();
-       strExt.TrimRight();
+
+       static const TCHAR pszSeps[] = _T("; |*%^&.,\\/<>:\"'`?\t\r\n");
 
        TCHAR ext[2048];
-       _tcscpy(ext, strExt);
+       // no need to trim before tokenizing
+       _tcscpy(ext, m_strExt);
        LPTSTR p;
        CString strPattern(_T("^.*\\.("));
 
index ab44862..a0b2bc9 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-20 Kimmo
+ PATCH: [ 791263 ] Remove CStringEx from OpenDlg (and from WinMerge?)
+  WinMerge: Merge.dsp OpenDlg.cpp
+  Common: removed StringEx.h StringEx.cpp
+
 2003-08-20 Perry
  Added Norwegian to batch build file
   Languages: BuildAll.bat