Wiki pages obsolete code report thread

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:

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)

DanielSefton

11-08-2011 02:20:26

loadLayout() is just the same as load(), the extra 2 params are optional.

Altren

11-08-2011 07:17:28

Thank you. I updated wiki page.

MindCalamity

11-08-2011 10:57:40

loadLayout() is just the same as load(), the extra 2 params are optional.

:oops:

Does anyone else have a problem with the wiki page freezing ? (quickstart)

IlBrillanteJack

04-09-2011 15:23:31

loadLayout() is just the same as load(), the extra 2 params are optional.

:oops:

Does anyone else have a problem with the wiki page freezing ? (quickstart)


Me too

MindCalamity

08-09-2011 17:52:15

loadLayout() is just the same as load(), the extra 2 params are optional.

:oops:

Does anyone else have a problem with the wiki page freezing ? (quickstart)


Me too


On Chrome, yes, I tried Firefox 6, and it worked and didn't freeze, I took a look at the contents, and it looked pretty good, I didn't see anything wrong, I have no idea what could be causing the freeze.