From 30c34d7ccb20007febdfc1ed110d9767393a5179 Mon Sep 17 00:00:00 2001 From: zvon Date: Mon, 11 May 2020 15:34:40 +0200 Subject: [PATCH] main.cpp: fix #endif position --- filesystem.hpp | 2 +- main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filesystem.hpp b/filesystem.hpp index 4e44d63..5de1871 100644 --- a/filesystem.hpp +++ b/filesystem.hpp @@ -110,7 +110,7 @@ public: #ifdef _WIN32 const char_t *validPath() const { - return dir_path.substr(0, dir_path.length()-2).c_str(); + return dir_path.substr( 0, dir_path.length() - 2 ).c_str(); } #endif diff --git a/main.cpp b/main.cpp index bbc69b8..61cebda 100644 --- a/main.cpp +++ b/main.cpp @@ -244,6 +244,8 @@ int parseCommandLine( string &show, std::set< int > &seasons_num, string &path, return 0; } +#endif + void ensureShowNotEmpty( string &show, const string &path ) { if ( show.empty() ) { show = FSLib::canonical( path ); @@ -262,8 +264,6 @@ void ensureShowNotEmpty( string &show, const string &path ) { } } -#endif - // windows needs wmain for unicode support #ifdef _WIN32 int wmain