MindCalamity
11-08-2011 00:12:28
I saw that this thread was not yet created, so I thought I'd create it, so it could solve a few warnings that causes some people to panic...
I opened it, so let me start by reporting a warning of obsolete code that I can't seem to solve:
The line that this code shows up is like so:
The part I don't understand is this one:
Can anyone give me an example ?
BTW To keep the thread as clean and as readable as possible, I think I should create a template for reports, here's my example:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Wiki Page: MyGUI Quickstart
Warning:
Line that causes the warning:
Additional Comments: I don't understand this part:
I opened it, so let me start by reporting a warning of obsolete code that I can't seem to solve:
1>src\App.cpp(689): warning C4996: 'MyGUI::MemberObsolete<MyGUI::LayoutManager>::load': is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)
1> d:\libraries\mygui\myguiengine\include\MyGUI_BackwardCompatibility.h(494) : see declaration of 'MyGUI::MemberObsolete<MyGUI::LayoutManager>::load'
The line that this code shows up is like so:
MyGUI::LayoutManager::getInstance().load("Layout.layout");
The part I don't understand is this one:
VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)
Can anyone give me an example ?
BTW To keep the thread as clean and as readable as possible, I think I should create a template for reports, here's my example:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Wiki Page: MyGUI Quickstart
Warning:
1>src\App.cpp(689): warning C4996: 'MyGUI::MemberObsolete<MyGUI::LayoutManager>::load': is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)
1> d:\libraries\mygui\myguiengine\include\MyGUI_BackwardCompatibility.h(494) : see declaration of 'MyGUI::MemberObsolete<MyGUI::LayoutManager>::load'
Line that causes the warning:
MyGUI::LayoutManager::getInstance().load("sample.layout");
Additional Comments: I don't understand this part:
VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)