aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/wxWidgets/main.cpp5
m---------libs/chess-move-interface0
-rw-r--r--src/components/Component.hpp1
-rw-r--r--src/components/MoveTable.cpp5
-rw-r--r--src/components/MoveTable.hpp3
5 files changed, 8 insertions, 6 deletions
diff --git a/examples/wxWidgets/main.cpp b/examples/wxWidgets/main.cpp
index 303d014..9f35981 100644
--- a/examples/wxWidgets/main.cpp
+++ b/examples/wxWidgets/main.cpp
@@ -23,9 +23,12 @@ public:
}
private:
- void OnExit(wxCommandEvent &event) { Close(true); }
+ void OnExit(wxCommandEvent &event) {
+ (void)event; // Disable unused variable warning
+ Close(true); }
void OnPaint(wxPaintEvent &event) {
+ (void)event; // Disable unused variable warning
wxPaintDC current_dc(this);
dc = &current_dc;
diff --git a/libs/chess-move-interface b/libs/chess-move-interface
-Subproject 03ce4126cfa09ff0a55e70bdc44c1d5dd403504
+Subproject 14ac3bba33a037e4b46b3f7ec9ba05760145f28
diff --git a/src/components/Component.hpp b/src/components/Component.hpp
index 564660a..45e4390 100644
--- a/src/components/Component.hpp
+++ b/src/components/Component.hpp
@@ -12,6 +12,7 @@ protected:
public:
Component(Status *s) : status(s){};
+ virtual ~Component(){};
std::vector<Element> GetElements() { return (this->elements); }
virtual void Refresh() = 0;
virtual void SyncCache() {};
diff --git a/src/components/MoveTable.cpp b/src/components/MoveTable.cpp
index 653356a..4878275 100644
--- a/src/components/MoveTable.cpp
+++ b/src/components/MoveTable.cpp
@@ -181,7 +181,7 @@ std::uint32_t MoveTable::UpdateMoves(CMI::HalfMove *m, std::uint32_t line,
//---------- Variations ----------
if (m->GetVariations().size() > 0) {
- line = DrawVariations(m, line, indent, move_bound, indent_black);
+ line = DrawVariations(m, line, indent, move_bound);
}
//---------- Mainline ----------
@@ -286,8 +286,7 @@ std::uint32_t MoveTable::DrawComment(CMI::HalfMove *m, std::uint32_t line,
std::uint32_t MoveTable::DrawVariations(CMI::HalfMove *m, std::uint32_t line,
std::uint32_t indent,
- const Element &move_bound,
- const char &indent_black) {
+ const Element &move_bound) {
// Show three dots next to move if white turn
if ((m->GetVariations().size() == 0) && !m->IsBlack()) {
DRAW_DOTS(status->MarginBarWidth + status->MoveWidth * (indent + 1),
diff --git a/src/components/MoveTable.hpp b/src/components/MoveTable.hpp
index e357287..1b6323e 100644
--- a/src/components/MoveTable.hpp
+++ b/src/components/MoveTable.hpp
@@ -60,8 +60,7 @@ class MoveTable : public Component {
std::uint32_t DrawComment(CMI::HalfMove *m, std::uint32_t line, std::uint32_t indent,
const Element &move_bound, const char &indent_black);
std::uint32_t DrawVariations(CMI::HalfMove *m, std::uint32_t line, std::uint32_t indent,
- const Element &move_bound,
- const char &indent_black);
+ const Element &move_bound);
public:
MoveTable(Status *s);
void Refresh();