Suppress harmless MSVC warnings about int to bool conversions.
Convert int to bool explicitly to avoid MSVC warning C4800. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -640,8 +640,8 @@ bool wxFileSystemObjectExists(const wxString& path, int flags)
|
||||
{
|
||||
// Should the existence of file/directory with this name be accepted, i.e.
|
||||
// result in the true return value from this function?
|
||||
const bool acceptFile = flags & wxFileSystemObject_File;
|
||||
const bool acceptDir = flags & wxFileSystemObject_Dir;
|
||||
const bool acceptFile = (flags & wxFileSystemObject_File) != 0;
|
||||
const bool acceptDir = (flags & wxFileSystemObject_Dir) != 0;
|
||||
|
||||
wxString strPath(path);
|
||||
|
||||
|
Reference in New Issue
Block a user