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:
Vadim Zeitlin
2012-02-25 23:49:53 +00:00
parent 8b89611217
commit 4dfc0ca0c5

View File

@@ -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);