Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv31674/src/classes

Modified Files:
        ComposeTemplate.cpp 
Log Message:
fixed stupid gcc warning when optimization is on

Index: ComposeTemplate.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/ComposeTemplate.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -b -u -2 -r1.35 -r1.36
--- ComposeTemplate.cpp 28 Jun 2002 22:17:58 -0000      1.35
+++ ComposeTemplate.cpp 13 Aug 2002 11:33:08 -0000      1.36
@@ -1438,6 +1438,6 @@
 
 #if wxUSE_REGEX
-   // will we use the RE?
-   bool useRE;
+   // don't use RE at all by default because the manual code is faster
+   bool useRE = false;
 
    // a RE to detect the start of the signature
@@ -1447,11 +1447,7 @@
       String sig = READ_CONFIG(m_profile, MP_REPLY_SIG_SEPARATOR);
 
-      if ( sig == GetStringDefault(MP_REPLY_SIG_SEPARATOR) )
-      {
-         // use faster manual code
-         useRE = false;
-      }
-      else // use the user-supplied RE
+      if ( sig != GetStringDefault(MP_REPLY_SIG_SEPARATOR) )
       {
+         // we have no choice but to use the user-supplied RE
          useRE = true;
 



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to