For some reason I couldn't log in to Mantis and I couldn't find any place in which to either register or request a new password, so I'll post the patch here instead.
Code: Select all
Index: cegui/src/ScriptingModules/LuaScriptModule/package/elements/TreeItem.pkg
===================================================================
--- cegui/src/ScriptingModules/LuaScriptModule/package/elements/TreeItem.pkg (revision 2519)
+++ cegui/src/ScriptingModules/LuaScriptModule/package/elements/TreeItem.pkg (arbetskopia)
@@ -6,13 +6,13 @@
Font* getFont() const;
ColourRect getTextColours() const;
void setFont(Font* font);
- void setFont(const String& font_name);
+ void setFont(const string& font_name);
void setTextColours(const ColourRect& cols);
void setTextColours(colour top_left_colour, colour top_right_colour,
colour bottom_left_colour, colour bottom_right_colour);
void setTextColours(colour col);
- const String &getText() const;
- const String &getTooltipText() const;
+ const string &getText() const;
+ const string &getTooltipText() const;
unsigned int getID() const;
void *getUserData() const;
bool isSelected() const;
@@ -21,8 +21,8 @@
const Window *getOwnerWindow();
ColourRect getSelectionColours() const;
const Image* getSelectionBrushImage() const;
- void setText(const String& text);
- void setTooltipText(const String& text);
+ void setText(const string& text);
+ void setTooltipText(const string& text);
void setID(unsigned int item_id);
void setUserData(void* item_data);
void setSelected(bool setting);
@@ -33,7 +33,7 @@
void setSelectionColours(colour top_left_colour,colour top_right_colour,colour bottom_left_colour,colour bottom_right_colour);
void setSelectionColours(colour col);
void setSelectionBrushImage(const Image* image);
- void setSelectionBrushImage(const String& imageset, const String& image);
+ void setSelectionBrushImage(const string& imageset, const string& image);
void setButtonLocation(Rect &buttonOffset);
Rect &getButtonLocation();
bool getIsOpen();