minor changes to eliminate unused parameter warning + some cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-02 22:47:40 +00:00
parent 13e51f3a55
commit 350fffae72

View File

@@ -391,17 +391,39 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const
/*static*/
wxString wxDynamicLibrary::CanonicalizeName(const wxString& name,
wxDynamicLibraryCategory cat)
{
wxString
wxDynamicLibrary::CanonicalizeName(const wxString& name,
wxDynamicLibraryCategory
#ifdef __UNIX__
if ( cat == wxDL_MODULE )
return name + GetDllExt();
else
return wxString(_T("lib")) + name + GetDllExt();
#else
return name + GetDllExt();
#endif
cat
#else // !__UNIX__
WXUNUSED(cat)
#endif // __UNIX__/!__UNIX__
)
{
wxString nameCanonic;
// under Unix the library names usualyl start with "lib" prefix, add it
#ifdef __UNIX__
switch ( cat )
{
default:
wxFAIL_MSG( _T("unknown wxDynamicLibraryCategory value") );
// fall through
case wxDL_MODULE:
// don't do anything for modules, their names are arbitrary
break;
case wxDL_LIBRARY:
// library names should start with "lib" under Unix
nameCanonic = _T("lib");
break;
}
#endif // __UNIX__
nameCanonic << name << GetDllExt();
return nameCanonic;
}
/*static*/
@@ -440,6 +462,7 @@ wxString wxDynamicLibrary::CanonicalizePluginName(const wxString& name,
#define wxDLLVER(x,y,z) #x #y #z
#endif
#endif
suffix << wxString::FromAscii(wxDLLVER(wxMAJOR_VERSION, wxMINOR_VERSION,
wxRELEASE_NUMBER));
#undef wxDLLVER