[solved] Remove UTFString from OgreMain

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
altren
Gnome
Posts: 334
Joined: Tue Oct 24, 2006 9:02 am
Location: Moscow, Russa
x 26

[solved] Remove UTFString from OgreMain

Post by altren »

Since it is not used on OgreMain, have non-trivial code and also uses c++17 deprecated features (inheritance from std::iterator) I suggest to move it into OgreOverlay

There are only two places where it is used:
1. OgreDynLib.h

Code: Select all

#    define DYNLIB_LOAD( a ) LoadPackagedLibrary( UTFString(a).asWStr_c_str(), 0 )
2. OgreOverlayElement.h

Code: Select all

typedef UTFString DisplayString
OgreDynLib.h usage can be replaced with a single windows specific function
Last edited by altren on Sun Jan 13, 2019 9:13 pm, edited 1 time in total.
Image
paroj
OGRE Team Member
OGRE Team Member
Posts: 2137
Joined: Sun Mar 30, 2014 2:51 pm
x 1145

Re: Remove UTFString from OgreMain

Post by paroj »

sounds good. can you create a pull-request for this?
User avatar
altren
Gnome
Posts: 334
Joined: Tue Oct 24, 2006 9:02 am
Location: Moscow, Russa
x 26

Re: Remove UTFString from OgreMain

Post by altren »

Yes
Image
User avatar
altren
Gnome
Posts: 334
Joined: Tue Oct 24, 2006 9:02 am
Location: Moscow, Russa
x 26

Re: Remove UTFString from OgreMain

Post by altren »

Image