aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2005-05-08 17:05:19 +0000
committerMax Horn2005-05-08 17:05:19 +0000
commit2eb868d2a3a89eb8f6d71ab6580e0a015552ccbc (patch)
tree96f1da7fd430c3f7597e72ec78c0ff882c93d5f6 /gui
parent9d20c7e21f98b2f8824f86ef7c297781f46a7f49 (diff)
downloadscummvm-rg350-2eb868d2a3a89eb8f6d71ab6580e0a015552ccbc.tar.gz
scummvm-rg350-2eb868d2a3a89eb8f6d71ab6580e0a015552ccbc.tar.bz2
scummvm-rg350-2eb868d2a3a89eb8f6d71ab6580e0a015552ccbc.zip
Fix doxygen warning
svn-id: r17969
Diffstat (limited to 'gui')
-rw-r--r--gui/message.cpp12
-rw-r--r--gui/message.h2
2 files changed, 6 insertions, 8 deletions
diff --git a/gui/message.cpp b/gui/message.cpp
index d5d44238df..5c420caccc 100644
--- a/gui/message.cpp
+++ b/gui/message.cpp
@@ -33,13 +33,13 @@ enum {
// TODO: The default button should be visibly distinct from the alternate button
-MessageDialog::MessageDialog(const String &message, const char *defaultButton, const char *altButton)
+MessageDialog::MessageDialog(const Common::String &message, const char *defaultButton, const char *altButton)
: Dialog(30, 20, 260, 124) {
// First, determine the size the dialog needs. For this we have to break
// down the string into lines, and taking the maximum of their widths.
// Using this, and accounting for the space the button(s) need, we can set
// the real size of the dialog
- StringList lines;
+ Common::StringList lines;
const char *str = message.c_str();
const char *start = str;
int lineWidth, maxlineWidth = 0;
@@ -95,10 +95,10 @@ MessageDialog::MessageDialog(const String &message, const char *defaultButton, c
addButton(cancelButtonPos, _h - 24, altButton, kCancelCmd, '\27'); // Cancel dialog
}
-int MessageDialog::addLine(StringList &lines, const char *line, int size) {
+int MessageDialog::addLine(Common::StringList &lines, const char *line, int size) {
int width = 0, maxWidth = 0;
const char *start = line, *pos = line, *end = start + size;
- String tmp;
+ Common::String tmp;
NewGui *gui = &g_gui;
while (pos < end) {
@@ -115,7 +115,7 @@ int MessageDialog::addLine(StringList &lines, const char *line, int size) {
pos = newPos;
// Add the substring from intervall [start, i-1]
- tmp = String(start, pos - start);
+ tmp = Common::String(start, pos - start);
lines.push_back(tmp);
// Determine the width of the string, and adjust maxWidth accordingly
@@ -135,7 +135,7 @@ int MessageDialog::addLine(StringList &lines, const char *line, int size) {
maxWidth = width;
if (start < pos) {
- tmp = String(start, pos - start);
+ tmp = Common::String(start, pos - start);
lines.push_back(tmp);
}
return maxWidth;
diff --git a/gui/message.h b/gui/message.h
index 058f0b66b9..e80c53422b 100644
--- a/gui/message.h
+++ b/gui/message.h
@@ -36,8 +36,6 @@ enum {
* Simple message dialog ("alert box"): presents a text message in a dialog with up to two buttons.
*/
class MessageDialog : public Dialog {
- typedef Common::String String;
- typedef Common::StringList StringList;
public:
MessageDialog(const Common::String &message, const char *defaultButton = "OK", const char *altButton = 0);