[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly
From: |
Vaclav Slavik |
Subject: |
Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly |
Date: |
Sun, 29 Mar 2009 23:00:41 +0200 |
On Sun, 2009-03-29 at 12:10 +0000, Greg Chicares wrote:
> > (2) I also added wxXmlResource::LoadFile(wxFileName) that doesn't suffer
> > from this ambiguity in r59150
> > (http://svn.wxwidgets.org/viewvc/wx?view=rev&revision=59150). In LMI
> > code, calls to xml_resources.Load() could -- and in my opinion should --
> > be replaced with xml_resources.LoadFile() to avoid the ambiguity.
>
> Given that I've done (3), is it still your opinion that lmi should
> use LoadFile() instead of Load()?
Yes. It's better to pass a filename argument to a function that accepts
filenames than to a function that accepts URIs and rely on the fact that
a filename is a particular form of URI in wxFileSystem. (Or, in case of
wxXmlResource::Load(), on its heuristics to recognize filenames vs.
URIs.)
Vaclav
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, (continued)
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/11
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/12
- Re[2]: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Vadim Zeitlin, 2009/03/14
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/14
- Re[2]: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Vadim Zeitlin, 2009/03/14
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/14
- Re[2]: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Vadim Zeitlin, 2009/03/14
- Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/14
Re: [lmi] wxmsw-2.9.0 (svn trunk) anomaly, Greg Chicares, 2009/03/29