Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv22981/src/mail
Modified Files:
SendMessageCC.cpp
Log Message:
compilation fix for gcc 3.0
Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.182
retrieving revision 1.183
diff -b -u -2 -r1.182 -r1.183
--- SendMessageCC.cpp 18 Mar 2002 00:26:20 -0000 1.182
+++ SendMessageCC.cpp 19 Mar 2002 00:02:12 -0000 1.183
@@ -1629,9 +1629,6 @@
SendMessageCC::WriteToFile(const String &filename, bool append)
{
- int flags = ios::out | ios::binary;
- if ( !append )
- flags |= ios::trunc;
-
- ofstream ostr(filename.c_str(), flags);
+ ofstream ostr(filename.c_str(),
+ ios::out | ios::binary | (append ? 0 : ios:trunc));
bool ok = !(!ostr || ostr.bad());
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates