mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Reduce needless use of wchar / stringw
This commit is contained in:
@ -17,6 +17,9 @@ namespace io
|
||||
*/
|
||||
typedef core::string<fschar_t> path;
|
||||
|
||||
// Type only exists for historcal reasons, paths are always char now.
|
||||
static_assert(sizeof(fschar_t) == sizeof(char));
|
||||
|
||||
//! Used in places where we identify objects by a filename, but don't actually work with the real filename
|
||||
/** Irrlicht is internally not case-sensitive when it comes to names.
|
||||
Also this class is a first step towards support for correctly serializing renamed objects.
|
||||
@ -62,11 +65,6 @@ struct SNamedPath
|
||||
{
|
||||
return core::stringc(getPath());
|
||||
}
|
||||
//! Implicit cast to io::path
|
||||
operator core::stringw() const
|
||||
{
|
||||
return core::stringw(getPath());
|
||||
}
|
||||
|
||||
protected:
|
||||
// convert the given path string to a name string.
|
||||
|
Reference in New Issue
Block a user