summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/widgets/browserbox.h
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadplus-747dc30f256606e28fd932a9626da7c328114036.tar.gz
plus-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
plus-747dc30f256606e28fd932a9626da7c328114036.tar.xz
plus-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index 304fa1e6c..739b5a18c 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -38,9 +38,22 @@ class Image;
class Resource;
class LinkHandler;
-struct BROWSER_LINK final
+struct BrowserLink final
{
- int x1, x2, y1, y2; /**< Where link is placed */
+ BrowserLink() :
+ x1(0),
+ x2(0),
+ y1(0),
+ y2(0),
+ link(),
+ caption()
+ {
+ }
+
+ int x1;
+ int x2;
+ int y1;
+ int y2;
std::string link;
std::string caption;
};
@@ -68,8 +81,10 @@ class LinePart final
mY(y),
mColor(color),
mColor2(color2),
+ mText(),
mType(1),
- mImage(image), mBold(false)
+ mImage(image),
+ mBold(false)
{
}
@@ -227,7 +242,7 @@ class BrowserBox final : public gcn::Widget,
typedef LinePartList::const_iterator LinePartCIter;
LinePartList mLineParts;
- typedef std::vector<BROWSER_LINK> Links;
+ typedef std::vector<BrowserLink> Links;
typedef Links::iterator LinkIterator;
Links mLinks;