[Python-modules-commits] [shiboken] 01/06: Cast ifstream to bool explicitely, to work with GCC-6
Didier Raboud
odyx at moszumanska.debian.org
Sat Jul 9 14:37:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch master
in repository shiboken.
commit 66cf66d63dbe88b8af702d9fde0a543bada788e1
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