Revision: 7303
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7303&view=rev
Author:   vadz
Date:     2007-07-29 08:20:21 -0700 (Sun, 29 Jul 2007)

Log Message:
-----------
removed another bogus cast to wxChar*

Modified Paths:
--------------
    trunk/M/src/classes/MessageView.cpp

Modified: trunk/M/src/classes/MessageView.cpp
===================================================================
--- trunk/M/src/classes/MessageView.cpp 2007-07-27 23:34:36 UTC (rev 7302)
+++ trunk/M/src/classes/MessageView.cpp 2007-07-29 15:20:21 UTC (rev 7303)
@@ -1980,7 +1980,8 @@
       if ( CheckMessagePartSize(mimepart) )
       {
          unsigned long len;
-         const void *data = mimepart->GetContent(&len);
+         const char * const
+            data = static_cast<const char *>(mimepart->GetContent(&len));
 
          if ( !data )
          {
@@ -1988,9 +1989,7 @@
          }
          else
          {
-            String s((const wxChar *)data, len);
-
-            m_viewer->InsertRawContents(s);
+            m_viewer->InsertRawContents(wxString::From8BitData(data, len));
          }
       }
       //else: skip this part


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to