Ticket #80 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 months ago

Why SceneFileType::options is std::string but passed around using char*?

Reported by: allenb Assigned to: unassigned
Priority: minor Milestone: 2.0 Beta
Component: Build Version: 2.0
Keywords: Cc:
Completion:

Description

SceneFileType::_options are stored as an std::string but all the get and set methods deal in char*'s? Is there a reason for this or could we just handle them as std::strings all the time?

Motivation: At least in my code I do all string processing using std::string's so using char* values just adds the pain of converting to and from char*'s in the code. Seems more easy to use std::string from the beginning.

Change History

10/06/06 20:32:30 changed by dirk

I can't think of any, we probably just forgot about when we changed everything else to std::string. Feel free to change it.

05/19/08 11:09:00 changed by cneumann

  • status changed from new to closed.
  • resolution set to fixed.

this is now obsolete/fixed as the io option handling was redone (as of r1233).