]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix.
authorMattia Barbon <mbarbon@cpan.org>
Thu, 11 Sep 2003 20:50:11 +0000 (20:50 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Thu, 11 Sep 2003 20:50:11 +0000 (20:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/svg/dcsvg.cpp
src/common/dcsvg.cpp

index baf6095050d47214cd6cd58db0161923f159988e..73654c6ff92676e05fffff8ec0ddc6346095ae4a 100644 (file)
@@ -840,7 +840,7 @@ wxCoord wxSVGFileDC::LogicalToDeviceYRel(wxCoord y) const
 
 void wxSVGFileDC::write(const wxString &s)
 {
-       wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
+       const wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
        m_outfile->Write(buf, strlen((const char *)buf));
        m_OK = m_outfile->Ok();
 }
index baf6095050d47214cd6cd58db0161923f159988e..73654c6ff92676e05fffff8ec0ddc6346095ae4a 100644 (file)
@@ -840,7 +840,7 @@ wxCoord wxSVGFileDC::LogicalToDeviceYRel(wxCoord y) const
 
 void wxSVGFileDC::write(const wxString &s)
 {
-       wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
+       const wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
        m_outfile->Write(buf, strlen((const char *)buf));
        m_OK = m_outfile->Ok();
 }