refactoring: replaced manual plugin registration with link-time plugin binding

This commit is contained in:
Tomasz Włostowski
2017-11-03 20:02:06 +01:00
parent 8a09a1d329
commit 7a44ab914d
8 changed files with 115 additions and 69 deletions
+4
View File
@@ -594,6 +594,10 @@ void GITHUB_PLUGIN::remoteGetZip( const wxString& aRepoURL )
}
}
namespace {
static IO_MGR::REGISTER_PLUGIN registerSelf( IO_MGR::GITHUB, wxT("Github"), []() -> PLUGIN* { return new GITHUB_PLUGIN; } );
};
#if 0 && defined(STANDALONE)
int main( int argc, char** argv )