OW warning fix. Our compile time asserts warns when used within function and dedicated #pragma seems not influence it so they are moved from functions into global space as near as possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1181,15 +1181,17 @@ bool wxFileName::IsCaseSensitive( wxPathFormat format )
|
||||
return GetFormat(format) == wxPATH_UNIX;
|
||||
}
|
||||
|
||||
// If asserts, wxPathFormat has been changed.
|
||||
wxCOMPILE_TIME_ASSERT(wxPATH_MAX == 5, wxPathFormatChanged);
|
||||
|
||||
/* static */
|
||||
wxString wxFileName::GetForbiddenChars(wxPathFormat format)
|
||||
{
|
||||
// Inits to forbidden characters that are common to (almost) all platforms.
|
||||
wxString strForbiddenChars = wxT("*?");
|
||||
|
||||
// If asserts, wxPathFormat has been changed. In case of a new path format
|
||||
// In case of a new path format
|
||||
// addition, the following code might have to be updated.
|
||||
wxCOMPILE_TIME_ASSERT(wxPATH_MAX == 5, wxPathFormatChanged);
|
||||
switch ( GetFormat(format) )
|
||||
{
|
||||
default :
|
||||
|
||||
Reference in New Issue
Block a user