Moleculefile.cpp:179: warning: unused parameter ‘fileName’

There’s a warning in moleculefile.cpp. I suppose there’s a bug in that code (very strange that fileName parameter isn’t used in MoleculeFile::replaceMolecule)

Regards,
Konstantin

Hi,

On Tue, Mar 2, 2010 at 2:58 PM, Konstantin Tokarev annulen@yandex.ru wrote:

There’s a warning in moleculefile.cpp. I suppose there’s a bug in that code (very strange that fileName parameter isn’t used in MoleculeFile::replaceMolecule)

While the documentation isn’t clear, the filename specified by the
parameter should probably be used… The current implementation uses
the internal stored filename but there might be cases where you want
to replace the molecule and write it to a new file. I’ll put this on
my TODO list for tonight.

Cheers,
Tim


Regards,
Konstantin


Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel