mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 04:18:36 +00:00
Improved compiler compatibility and cleaned up a couple warnings.
This commit is contained in:
parent
196975f55f
commit
99075065c9
@ -61,7 +61,6 @@ TrackList::TrackList(ILibraryPtr library) {
|
||||
TrackList::TrackList(TrackList* other)
|
||||
: ids(other->ids)
|
||||
, library(other->library) {
|
||||
this->library = library;
|
||||
}
|
||||
|
||||
TrackList::TrackList(ILibraryPtr library, const int64_t* trackIds, size_t trackIdCount)
|
||||
@ -274,4 +273,4 @@ void TrackListEditor::Clear() {
|
||||
|
||||
void TrackListEditor::Shuffle() {
|
||||
this->trackList->Shuffle();
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include <ostream>
|
||||
#include <iomanip>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
using namespace musik::core;
|
||||
using namespace musik::core::sdk;
|
||||
|
@ -46,6 +46,8 @@
|
||||
#include <cursespp/DialogOverlay.h>
|
||||
#include <cursespp/Screen.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
using namespace musik;
|
||||
using namespace musik::core;
|
||||
using namespace musik::core::sdk;
|
||||
@ -258,4 +260,4 @@ void PreampOverlay::RecalculateSize() {
|
||||
this->width = std::max(0, std::min(Screen::GetWidth(), this->width));
|
||||
this->y = VERTICAL_PADDING;
|
||||
this->x = (Screen::GetWidth() / 2) - (this->width / 2);
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <app/util/Playback.h>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <iostream>
|
||||
|
||||
using namespace musik::cube;
|
||||
using namespace musik::core;
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include <cursespp/Screen.h>
|
||||
#include <algorithm>
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <cursespp/Win32Util.h>
|
||||
|
@ -103,7 +103,6 @@ InputOverlay& InputOverlay::SetTitle(const std::string& title) {
|
||||
}
|
||||
|
||||
InputOverlay& InputOverlay::SetText(const std::string& text) {
|
||||
this->title = title;
|
||||
this->textInput->SetText(text);
|
||||
return *this;
|
||||
}
|
||||
@ -205,4 +204,4 @@ void InputOverlay::Redraw() {
|
||||
checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str());
|
||||
wattroff(c, A_BOLD);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user