[Python-modules-commits] [shiboken] 08/13: Cast ifstream to bool explicitely, to work with GCC-6
Raphaël Hertzog
hertzog at moszumanska.debian.org
Thu Aug 17 18:09:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
hertzog pushed a commit to branch master
in repository shiboken.
commit f51e55e7eef422ea68cb8c2b03150361f5b08903
Author: Didier Raboud <odyx at debian.org>
Date: Sat Jul 9 16:24:33 2016 +0200
Cast ifstream to bool explicitely, to work with GCC-6
Bug-Debian: #811669
---
tests/libsample/simplefile.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/libsample/simplefile.cpp b/tests/libsample/simplefile.cpp
index deac166..20369f2 100644
--- a/tests/libsample/simplefile.cpp
+++ b/tests/libsample/simplefile.cpp
@@ -90,13 +90,13 @@ bool
SimpleFile::exists() const
{
std::ifstream ifile(p->m_filename);
- return ifile;
+ return static_cast<bool>(ifile);
}
bool
SimpleFile::exists(const char* filename)
{
std::ifstream ifile(filename);
- return ifile;
+ return static_cast<bool>(ifile);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/shiboken.git
More information about the Python-modules-commits
mailing list