From 1dd61ffb2421a75fa28ad310b4c9466fbbe1f81a Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 25 Jun 2015 02:00:57 +0800 Subject: [PATCH] fix an explicit conversion error from ifstream to bool --- source/detail/linux_X11/platform_spec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/detail/linux_X11/platform_spec.cpp b/source/detail/linux_X11/platform_spec.cpp index f53c046b..c8ccf682 100644 --- a/source/detail/linux_X11/platform_spec.cpp +++ b/source/detail/linux_X11/platform_spec.cpp @@ -44,7 +44,7 @@ namespace detail bool conf::open(const char* file) { ifs_.open(file); - return static_cast(ifs_ != 0); + return static_cast(ifs_); } std::string conf::value(const char* key)