lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] another small compilation fix for !wxUSE_STL


From: Vadim Zeitlin
Subject: [lmi] another small compilation fix for !wxUSE_STL
Date: Mon, 2 Jun 2008 01:17:30 +0200

 Hello again,

 This is the same issue with std::string to wxString conversion again:
while

        std::string s(wxString());

compiles, this

        std::string s = wxString();

does not. Hence this patch is needed to fix the compilation of
wx_utility.cpp now:

--- wx_utility.cpp      2008-04-30 18:44:23 +0000
+++ wx_utility.cpp      2008-06-01 23:11:26 +0000
@@ -169,8 +169,8 @@
                 << LMI_FLUSH
                 ;
             }
-        std::string const lmi_str = lmi_date0.str();
-        std::string const wx_str  = ConvertDateToWx(lmi_date0).FormatISODate();
+        std::string const lmi_str(lmi_date0.str());
+        std::string const wx_str(ConvertDateToWx(lmi_date0).FormatISODate());
         if(lmi_str != wx_str)
             {
             fatal_error()


The change in "lmi_str" line is not, of course, necessary, but I did it for
consistency.

 Could you please apply this or should I just commit it myself as I'm
*really* sure that this one is not going to break anything?

 Thanks,
VZ





reply via email to

[Prev in Thread] Current Thread [Next in Thread]