Improved compiler compatibility and cleaned up a couple warnings.

This commit is contained in:
casey langen 2019-01-01 19:57:01 +00:00
parent 196975f55f
commit 99075065c9
6 changed files with 8 additions and 5 deletions

View File

@ -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();
}
}

View File

@ -55,6 +55,7 @@
#include <ostream>
#include <iomanip>
#include <limits>
#include <sstream>
using namespace musik::core;
using namespace musik::core::sdk;

View File

@ -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);
}
}

View File

@ -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;

View File

@ -44,6 +44,7 @@
#include <cursespp/Screen.h>
#include <algorithm>
#include <thread>
#include <iostream>
#ifdef WIN32
#include <cursespp/Win32Util.h>

View File

@ -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);
}
}
}