Skip to content

Commit 1d1e71e

Browse files
author
XorTroll
committed
A few fixes for the optimizations
1 parent fcf895f commit 1d1e71e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Plutonium/Include/pu/element/Element.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace pu::element
2020
{
2121
public:
2222
Element();
23+
virtual ~Element();
2324
virtual u32 GetX() = 0;
2425
virtual u32 GetY() = 0;
2526
virtual u32 GetWidth() = 0;

Plutonium/Source/pu/element/Element.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ namespace pu::element
77
this->visible = true;
88
}
99

10+
Element::~Element()
11+
{
12+
}
13+
1014
bool Element::IsVisible()
1115
{
1216
return this->visible;

Plutonium/Source/pu/element/ProgressBar.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace pu::element
1010
this->h = Height;
1111
this->clr = { 140, 140, 140, 255 };
1212
this->oclr = { 139, 195, 74, 255 };
13+
this->perc = 0;
1314
}
1415

1516
u32 ProgressBar::GetX()

0 commit comments

Comments
 (0)