summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:55:32 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:55:32 +0100
commit08c9cde4726f94698ea938d464cd1de95b7be587 (patch)
treef75128313418756395683398342cf808387ed390 /src/gui/scrollarea.cpp
parenta6623430aa11b02f93761d27c25db9bb4157ec6f (diff)
downloadmana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.gz
mana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.bz2
mana-08c9cde4726f94698ea938d464cd1de95b7be587.tar.xz
mana-08c9cde4726f94698ea938d464cd1de95b7be587.zip
Fixes some variable names to conform to naming convention
Please do remember that member variables are prefixes with 'm', so that they are easily distinguishable.
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r--src/gui/scrollarea.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index bc3a62dc..70504a03 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -35,18 +35,16 @@ ImageRect ScrollArea::background;
ImageRect ScrollArea::vMarker;
Image *ScrollArea::buttons[4][2];
-ScrollArea::ScrollArea(bool gc, bool opaque):
+ScrollArea::ScrollArea():
gcn::ScrollArea(),
- mOpaque(opaque),
- mGC(gc)
+ mOpaque(true)
{
init();
}
-ScrollArea::ScrollArea(gcn::Widget *widget, bool gc, bool opaque):
+ScrollArea::ScrollArea(gcn::Widget *widget):
gcn::ScrollArea(widget),
- mOpaque(opaque),
- mGC(gc)
+ mOpaque(true)
{
init();
}
@@ -54,8 +52,7 @@ ScrollArea::ScrollArea(gcn::Widget *widget, bool gc, bool opaque):
ScrollArea::~ScrollArea()
{
// Garbage collection
- if (mGC)
- delete getContent();
+ delete getContent();
instances--;