main.cpp: fix #endif position

This commit is contained in:
zvon 2020-05-11 15:34:40 +02:00
parent de5be3e857
commit 30c34d7ccb
2 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ public:
#ifdef _WIN32 #ifdef _WIN32
const char_t *validPath() const { 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 #endif

View File

@ -244,6 +244,8 @@ int parseCommandLine( string &show, std::set< int > &seasons_num, string &path,
return 0; return 0;
} }
#endif
void ensureShowNotEmpty( string &show, const string &path ) { void ensureShowNotEmpty( string &show, const string &path ) {
if ( show.empty() ) { if ( show.empty() ) {
show = FSLib::canonical( path ); show = FSLib::canonical( path );
@ -262,8 +264,6 @@ void ensureShowNotEmpty( string &show, const string &path ) {
} }
} }
#endif
// windows needs wmain for unicode support // windows needs wmain for unicode support
#ifdef _WIN32 #ifdef _WIN32
int wmain int wmain