Patch: Fix MSVC build error in ie_imp_RTF.cpp

From: Mikey Cooper (mikey_at_bluey.com)
Date: Wed Apr 14 2004 - 00:48:39 EDT

  • Next message: msevior_at_physics.unimelb.edu.au: "Re: ATTN: CVS HEAD in FEATURE FREEZE"

    In ie_imp_RTF.cpp, line 9759 reads "FREEP(const_cast<XML_Char*>(sz));" which
    generates "error C2106: '=' : left operand must be l-value" in MSVC (doesn't
    happen under MinGW). MSVC does not seem to like casting l-values, even if
    it's cast as a pointer.

    I made a patch that just converts "FREEP" to "free", based on this email:
    http://www.abisource.com/mailinglists/abiword-dev/00/September/0085.html

    It lets MSVC build properly, but not sure if I'm introducing some kind of
    memory leak. Patch attached.





    This archive was generated by hypermail 2.1.4 : Wed Apr 14 2004 - 00:52:17 EDT