Salome HOME
projects
/
plugins
/
ghs3dprlplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e54ec34
)
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
V7_8_0a1
author
eap
<eap@opencascade.com>
Thu, 14 Jan 2016 11:02:55 +0000
(14:02 +0300)
committer
eap
<eap@opencascade.com>
Thu, 14 Jan 2016 11:02:55 +0000
(14:02 +0300)
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
patch
|
blob
|
history
diff --git
a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
index 32a9c1fa0f22a1c9d9da8c365349fdecbd997ef1..b284452d5fbdd313b527467de881af7f77a5dfa9 100755
(executable)
--- a/
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
+++ b/
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
@@
-189,7
+189,7
@@
std::istream& GHS3DPRLPlugin_Hypothesis::LoadFrom(std::istream& load)
std::string str1,str2,str3,str4;
//save without any whitespaces!
- isOK = (load >> str1);
+ isOK =
static_cast<bool>
(load >> str1);
if (!(isOK)) {
//defaults values assumed
load.clear(std::ios::badbit | load.rdstate());