summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
commit5612fb3a7f20a9385ba786bb25d25081b86259dd (patch)
treea7548d655f6f8d8298d94ce2f433dd287cde78bd /src/gui/widgets
parent4431f40818f832e2cbae061927bdf59904cf5d3b (diff)
downloadplus-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.gz
plus-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.bz2
plus-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.xz
plus-5612fb3a7f20a9385ba786bb25d25081b86259dd.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp6
-rw-r--r--src/gui/widgets/colorpage.cpp2
-rw-r--r--src/gui/widgets/dropdown.cpp2
-rw-r--r--src/gui/widgets/extendedlistbox.cpp2
-rw-r--r--src/gui/widgets/serverslistbox.h2
-rw-r--r--src/gui/widgets/tabbedarea.cpp6
6 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 126e3f2b4..c81798e29 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -112,7 +112,7 @@ void AvatarListBox::draw(Graphics *const graphics)
if (!parent)
return;
- AvatarListModel *const model = static_cast<AvatarListModel *const>(
+ AvatarListModel *const model = static_cast<AvatarListModel *>(
mListModel);
updateAlpha();
@@ -357,7 +357,7 @@ void AvatarListBox::safeDraw(Graphics *const graphics)
if (!parent)
return;
- AvatarListModel *const model = static_cast<AvatarListModel *const>(
+ AvatarListModel *const model = static_cast<AvatarListModel *>(
mListModel);
updateAlpha();
@@ -598,7 +598,7 @@ void AvatarListBox::mousePressed(MouseEvent &event)
setSelected(y);
distributeActionEvent();
const int selected = getSelected();
- AvatarListModel *const model = static_cast<AvatarListModel *const>(
+ AvatarListModel *const model = static_cast<AvatarListModel *>(
mListModel);
if (!model)
return;
diff --git a/src/gui/widgets/colorpage.cpp b/src/gui/widgets/colorpage.cpp
index fbbe93d2c..f29540c0f 100644
--- a/src/gui/widgets/colorpage.cpp
+++ b/src/gui/widgets/colorpage.cpp
@@ -55,7 +55,7 @@ void ColorPage::draw(Graphics *const graphics)
{
BLOCK_START("ColorPage::draw")
- const ColorModel *const model = static_cast<ColorModel* const>(
+ const ColorModel *const model = static_cast<const ColorModel*>(
mListModel);
mHighlightColor.a = CAST_U32(mAlpha * 255.0F);
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 17bb7bc32..eb848f4d6 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -234,7 +234,7 @@ void DropDown::draw(Graphics *const graphics)
{
const int sel = mPopup->getSelected();
ExtendedListModel *const model2
- = static_cast<ExtendedListModel *const>(model);
+ = static_cast<ExtendedListModel *>(model);
const Image *const image = model2->getImageAt(sel);
if (!image)
{
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp
index caf1aaefd..921dfee7f 100644
--- a/src/gui/widgets/extendedlistbox.cpp
+++ b/src/gui/widgets/extendedlistbox.cpp
@@ -55,7 +55,7 @@ void ExtendedListBox::draw(Graphics *const graphics)
return;
BLOCK_START("ExtendedListBox::draw")
- ExtendedListModel *const model = static_cast<ExtendedListModel* const>(
+ ExtendedListModel *const model = static_cast<ExtendedListModel *>(
mListModel);
updateAlpha();
diff --git a/src/gui/widgets/serverslistbox.h b/src/gui/widgets/serverslistbox.h
index f0815ba19..fb45dd01a 100644
--- a/src/gui/widgets/serverslistbox.h
+++ b/src/gui/widgets/serverslistbox.h
@@ -51,7 +51,7 @@ class ServersListBox final : public ListBox
return;
ServersListModel *const model
- = static_cast<ServersListModel *const>(mListModel);
+ = static_cast<ServersListModel *>(mListModel);
updateAlpha();
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 4317c86f1..6df39dfe6 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -384,7 +384,7 @@ void TabbedArea::mousePressed(MouseEvent &event)
{
Widget *const widget = mTabContainer->getWidgetAt(
event.getX(), event.getY());
- Tab *const tab = dynamic_cast<Tab *const>(widget);
+ Tab *const tab = dynamic_cast<Tab *>(widget);
if (tab)
{
@@ -475,7 +475,7 @@ void TabbedArea::widgetResized(const Event &event A_UNUSED)
- mWidgetContainer->getY() - widgetFrameSize;
Widget *const w = getCurrentWidget();
- ScrollArea *const scr = dynamic_cast<ScrollArea *const>(w);
+ ScrollArea *const scr = dynamic_cast<ScrollArea *>(w);
if (scr)
{
if (mFollowDownScroll && height != 0)
@@ -638,7 +638,7 @@ void TabbedArea::adjustTabPositions()
void TabbedArea::action(const ActionEvent& actionEvent)
{
Widget *const source = actionEvent.getSource();
- Tab *const tab = dynamic_cast<Tab *const>(source);
+ Tab *const tab = dynamic_cast<Tab *>(source);
if (tab)
{