From aec0fda1405087d1b110768ea0a4d9d4b111d027 Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Mon, 11 Jul 2016 01:34:10 -0700 Subject: [PATCH] Fixed *nix compile --- src/musikbox/Main.cpp | 6 +++--- src/musikbox/cursespp/App.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/musikbox/Main.cpp b/src/musikbox/Main.cpp index e330a411a..28e85c3eb 100644 --- a/src/musikbox/Main.cpp +++ b/src/musikbox/Main.cpp @@ -88,9 +88,9 @@ int main(int argc, char* argv[]) { App app("musikbox"); /* inits curses; needs to happen before layout creation */ - ILayoutPtr libraryLayout(new LibraryLayout(playback, library)); - ILayoutPtr consoleLayout(new ConsoleLayout(transport, library)); - ILayoutPtr indexerLayout(new IndexerLayout(library)); + ILayoutPtr libraryLayout((ILayout *) new LibraryLayout(playback, library)); + ILayoutPtr consoleLayout((ILayout *) new ConsoleLayout(transport, library)); + ILayoutPtr indexerLayout((ILayout *) new IndexerLayout(library)); app.SetKeyHandler([&](const std::string& kn) { if (kn == "M-`" || kn == "M-~") { diff --git a/src/musikbox/cursespp/App.cpp b/src/musikbox/cursespp/App.cpp index 114336562..017d8c2b9 100755 --- a/src/musikbox/cursespp/App.cpp +++ b/src/musikbox/cursespp/App.cpp @@ -77,7 +77,7 @@ static void hangupHandler(int signal) { static void resizeHandler(int signal) { endwin(); /* required in *nix because? */ - resizeAt = now() + REDRAW_DEBOUNCE_MS; + resizeAt = App::Now() + REDRAW_DEBOUNCE_MS; } #endif